Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

SftDirectory.TopMostFolderIDL Property

Defines the topmost folder displayed using an absolute ITEMIDLIST.

Syntax

Get

VB.NETabsoluteIDL = object.TopMostFolderIDL As String
VBabsoluteIDL = object.TopMostFolderIDL As String
C#.NETstring absoluteIDL = object.TopMostFolderIDL;
VC++_bstr_t absoluteIDL = object->TopMostFolderIDL;
_bstr_t absoluteIDL = object->GetTopMostFolderIDL();
CHRESULT object->get_TopMostFolderIDL(BSTR* absoluteIDL);

Put

VB.NETobject.TopMostFolderIDL = absoluteIDL As String
VBobject.TopMostFolderIDL = absoluteIDL As String
C#.NETstring object.TopMostFolderIDL = absoluteIDL;
VC++_bstr_t object->TopMostFolderIDL = absoluteIDL;
void object->PutTopMostFolderIDL(_bstr_t absoluteIDL);
CHRESULT object->put_TopMostFolderIDL(BSTR absoluteIDL);

object

A SftDirectory object.

absoluteIDL

Defines the topmost folder displayed using an absolute ITEMIDLIST.

Comments

The TopMostFolderIDL property defines the topmost folder displayed using an absolute ITEMIDLIST.

The control's contents are loaded and displayed using the absolute ITEMIDLIST.

ITEMIDLIST structures are typically used when communicating with the Windows Shell. For detailed information about the ITEMIDLIST structure and its use, please see Microsoft's Windows documentation.

Examples

VB.NET

Private Sub AxSftDirectoryLeft_SelectionFinal(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxSftDirectoryLeft.SelectionFinal
    ' If the selection in the left tree changes, update right side detaillist
    UpdateLeftButtons()
    AxSftDirectoryRight.Clear()
    AxSftDirectoryRight.CancelMode()
    AxSftDirectoryRight.Refresh()
    If Not AxSftDirectoryLeft.CurrentFolder Is Nothing Then
        AxSftDirectoryRight.TopMostFolderIDL = AxSftDirectoryLeft.CurrentFolder.ItemIDList
    Else
        AxSftDirectoryRight.TopMostFolderSpecial = SftDirectorySpecialFolderConstants.specialSftDirectoryEmpty
    End If
End Sub

Private Sub AxSftDirectoryRight_Opening(ByVal sender As Object, ByVal e As AxSftDirectoryLib30._ISftDirectoryEvents_OpeningEvent) Handles AxSftDirectoryRight.Opening
    Dim F As SftDirectoryFolder
    Dim IDL As String

VB6

Private Sub SftDirectoryLeft_SelectionFinal()
    ' If the selection in the left tree changes, update right side detaillist
    UpdateLeftButtons
    SftDirectoryRight.Clear
    SftDirectoryRight.CancelMode
    SftDirectoryRight.Refresh
    If Not SftDirectoryLeft.CurrentFolder Is Nothing Then
        SftDirectoryRight.TopMostFolderIDL = SftDirectoryLeft.CurrentFolder.ItemIDList
    Else
        SftDirectoryRight.TopMostFolderSpecial = specialSftDirectoryEmpty
    End If
End Sub

Private Sub SftDirectoryRight_Opening(Folder As SftDirectoryLib30.ISftDirectoryFolder, Allow As Boolean)
    Dim F As SftDirectoryFolder
    Dim IDL As String

C#

private void axSftDirectoryLeft_SelectionFinal(object sender, System.EventArgs e) {
    // If the selection in the left tree changes, update right side detaillist
    UpdateLeftButtons();
    axSftDirectoryRight.Clear();
    axSftDirectoryRight.CancelMode();
    axSftDirectoryRight.Refresh();
    if (axSftDirectoryLeft.CurrentFolder != null)
        axSftDirectoryRight.TopMostFolderIDL = axSftDirectoryLeft.CurrentFolder.ItemIDList;
    else
        axSftDirectoryRight.TopMostFolderSpecial = SftDirectorySpecialFolderConstants.specialSftDirectoryEmpty;
}

private void axSftDirectoryRight_Opening(object sender, AxSftDirectoryLib30._ISftDirectoryEvents_OpeningEvent e) {
    SftDirectoryFolder f;
    String IDL;
    // we're about to open a file/folder.  If we can add the folder on the

C++

    ISftDirectoryPtr vDirRight = m_DirRight.GetControlUnknown();
    ISftDirectoryPtr vDirLeft = m_DirLeft.GetControlUnknown();

    UpdateLeftButtons();
    vDirRight->Clear();
    vDirRight->CancelMode();
    vDirRight->Refresh();
    if (vDirLeft->CurrentFolder != NULL)
        vDirRight->TopMostFolderIDL = vDirLeft->CurrentFolder->ItemIDList;
    else
        vDirRight->TopMostFolderSpecial = specialSftDirectoryEmpty;
}

void CSimpleExplorerDlg::OnOpening_SftDirectoryRight(LPDISPATCH FAR* Folder, BOOL FAR* Allow)
{
    ISftDirectoryFolderPtr f = *Folder;

See Also SftDirectory Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.