SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Returns the file/folder's parent folder.
Get
| VB.NET | ParentFolder = object.Parent As SftDirectoryFolder |
| VB | Set ParentFolder = object.Parent As SftDirectoryFolder |
| C#.NET | SftDirectoryFolder ParentFolder = object.Parent; |
| VC++ | ISftDirectoryFolder* ParentFolder = object->Parent; ISftDirectoryFolder* ParentFolder = object->GetParent(); |
| C | HRESULT object->get_Parent(ISftDirectoryFolder** ParentFolder); |
object
A SftDirectoryFolder object.
ParentFolder
Returns the file/folder's parent folder.
The Parent property returns the file/folder's parent folder.
The FirstSubfolder property returns a folder's first subfolder.
The Next property returns a file/folder's next folder within the same parent folder.
The Previous property returns a file/folder's previous folder within the same parent folder.
End Sub
Private Sub UpdateLeftButtons()
' Update the buttons dependent on the left tree
Dim F As SftDirectoryFolder
' Enable/disable Up button
F = AxSftDirectoryLeft.CurrentFolder
If Not F Is Nothing Then
F = F.Parent
End If
ButtonUp.Enabled = Not F Is Nothing
End Sub
Private Sub UpdateRightButtons()
' Update the buttons dependent on the right side detaillist
Dim F As SftDirectoryFolder
End Sub
Private Sub UpdateLeftButtons()
' Update the buttons dependent on the left tree
Dim F As SftDirectoryFolder
' Enable/disable Up button
Set F = SftDirectoryLeft.CurrentFolder
If Not F Is Nothing Then
Set F = F.Parent
End If
UpButton.Enabled = Not F Is Nothing
End Sub
Private Sub UpdateRightButtons()
' Update the buttons dependent on the right side detaillist
Dim F As SftDirectoryFolder
private void UpdateLeftButtons()
{
// Update the buttons dependent on the left tree
SftDirectoryFolder f;
// Enable/disable Up button
f = axSftDirectoryLeft.CurrentFolder;
if (f != null)
f = f.Parent;
buttonUp.Enabled = (f != null);
}
private void UpdateRightButtons()
{
// Update the buttons dependent on the right side detaillist
SftDirectoryFolder f;
// Enable/disable properties button
void CSimpleExplorerDlg::UpdateLeftButtons()
{
// Update the buttons dependent on the left tree
ISftDirectoryFolderPtr f;
// Enable/disable Up button
ISftDirectoryPtr vDirLeft = m_DirLeft.GetControlUnknown();
f = vDirLeft->CurrentFolder;
if (f != NULL) {
f = f->Parent;
}
GetDlgItem(IDC_UP_BUTTON)->EnableWindow(f != NULL);
}
void CSimpleExplorerDlg::UpdateRightButtons()
{
ISftDirectoryPtr vDirRight = m_DirRight.GetControlUnknown();See Also SftDirectoryFolder Object | Object Hierarchy
