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
Defines the topmost folder displayed using predefined values.
Get
VB.NET | FolderSpecial = object.TopMostFolderSpecial As SftDirectorySpecialFolderConstants |
VB | FolderSpecial = object.TopMostFolderSpecial As SftDirectorySpecialFolderConstants |
C#.NET | SftDirectorySpecialFolderConstants FolderSpecial = object.TopMostFolderSpecial; |
VC++ | enum SftDirectorySpecialFolderConstants FolderSpecial = object->TopMostFolderSpecial; enum SftDirectorySpecialFolderConstants FolderSpecial = object->GetTopMostFolderSpecial(); |
C | HRESULT object->get_TopMostFolderSpecial(enum SftDirectorySpecialFolderConstants* FolderSpecial); |
Put
VB.NET | object.TopMostFolderSpecial = FolderSpecial As SftDirectorySpecialFolderConstants |
VB | object.TopMostFolderSpecial = FolderSpecial As SftDirectorySpecialFolderConstants |
C#.NET | SftDirectorySpecialFolderConstants object.TopMostFolderSpecial = FolderSpecial; |
VC++ | enum SftDirectorySpecialFolderConstants object->TopMostFolderSpecial = FolderSpecial; void object->PutTopMostFolderSpecial(enum SftDirectorySpecialFolderConstants FolderSpecial); |
C | HRESULT object->put_TopMostFolderSpecial(enum SftDirectorySpecialFolderConstants FolderSpecial); |
object
FolderSpecial
Defines the topmost folder displayed using a folder's system-independent CSIDL. CSIDL values provide a system-independent method to identify special folders. SftDirectorySpecialFolderConstants describes all available CSIDL values:
FolderSpecial | Value | Description |
---|---|---|
specialSftDirectoryNone | -1 | None |
specialSftDirectoryAdminTools | 48 | AdminTools (*) |
specialSftDirectoryAltStartup | 29 | AltStartup |
specialSftDirectoryAppData | 26 | AppData (*) |
specialSftDirectoryRecycleBin | 10 | RecycleBin |
specialSftDirectoryCDBurnArea | 59 | CDBurnArea (6.0) |
specialSftDirectoryCommonAdminTools | 47 | Common AdminTools (*) |
specialSftDirectoryCommonAltStartup | 30 | Common AltStartup |
specialSftDirectoryCommonAppData | 35 | Common AppData (*) |
specialSftDirectoryCommonDesktop | 25 | Common Desktop |
specialSftDirectoryCommonDocuments | 46 | Common Documents (*) |
specialSftDirectoryCommonFavorites | 31 | Common Favorites |
specialSftDirectoryCommonMusic | 53 | Common Music (6.0) |
specialSftDirectoryCommonPictures | 54 | Common Pictures (6.0) |
specialSftDirectoryCommonPrograms | 23 | Common Programs |
specialSftDirectoryCommonStartMenu | 22 | Common StartMenu |
specialSftDirectoryCommonStartUp | 24 | Common StartUp |
specialSftDirectoryCommonTemplates | 45 | Common Templates |
specialSftDirectoryCommonVideo | 55 | Common Video (6.0) |
specialSftDirectoryControlPanel | 3 | ControlPanel |
specialSftDirectoryCookies | 33 | Cookies (*) |
specialSftDirectoryDesktop | 0 | Desktop |
specialSftDirectoryDesktopDirectory | 16 | DesktopDirectory |
specialSftDirectoryMyComputer | 17 | My Computer |
specialSftDirectoryFavorites | 6 | Favorites |
specialSftDirectoryFonts | 20 | Fonts |
specialSftDirectoryHistory | 34 | History (*) |
specialSftDirectoryInternet | 1 | Internet |
specialSftDirectoryInternetCache | 32 | InternetCache (*) |
specialSftDirectoryLocalAppData | 28 | Local AppData (*) |
specialSftDirectoryMyDocumentsDesktop | 12 | My Documents Desktop Item (6.0) |
specialSftDirectoryMyMusic | 13 | My Music |
specialSftDirectoryMyPictures | 39 | My Pictures (*) |
specialSftDirectoryMyVideos | 14 | My Videos (6.0) |
specialSftDirectoryMyNetworkNeighborhood | 19 | My Network Neighborhood |
specialSftDirectoryNetworkNeighborhood | 18 | Network Neighborhood |
specialSftDirectoryMyDocuments | 5 | My Documents (*) |
specialSftDirectoryPrinters | 4 | Printers |
specialSftDirectoryPrintHood | 27 | PrintHood |
specialSftDirectoryProfile | 40 | Profile (5.0) |
specialSftDirectoryProfiles | 62 | Profiles (6.0) |
specialSftDirectoryProgramFiles | 38 | Program Files (*) |
specialSftDirectoryCommonProgramFiles | 43 | Common Program Files (*) |
specialSftDirectoryPrograms | 2 | Programs |
specialSftDirectoryRecent | 8 | Recent |
specialSftDirectorySendTo | 9 | SendTo |
specialSftDirectoryStartMenu | 11 | StartMenu |
specialSftDirectoryStartup | 7 | Startup |
specialSftDirectorySystem | 37 | System (*) |
specialSftDirectoryTemplates | 21 | Templates |
specialSftDirectoryWindows | 36 | Windows (*) |
specialSftDirectoryConnections | 49 | Connections (6.0) |
specialSftDirectoryComputersNearMe | 61 | Computers Near Me (6.0) |
specialSftDirectoryPhotoAlbums | 69 | PhotoAlbums (Vista+) |
specialSftDirectoryPlayLists | 63 | PlayLists (Vista+) |
specialSftDirectoryResources | 56 | Resources (Vista+) |
specialSftDirectorySampleMusic | 64 | Sample Music (Vista+) |
specialSftDirectorySamplePictures | 66 | Sample Pictures (Vista+) |
specialSftDirectorySamplePlayLists | 65 | Sample PlayLists (Vista+) |
specialSftDirectorySampleVideos | 67 | Sample Videos (Vista+) |
specialSftDirectoryEmpty | 999 | Empty |
The TopMostFolderSpecial property defines the topmost folder displayed using predefined values.
The control's contents are loaded and displayed using the folder's system-independent CSIDL.
' 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 ' we're about to open a file/folder. If we can add the folder on the
' 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 ' we're about to open a file/folder. If we can add the folder on the
// 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 // left side, that means we don't need to open it in a separate window
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; _bstr_t bstrIDL; ISftDirectoryPtr vDirLeft = m_DirLeft.GetControlUnknown();
See Also SftDirectory Object | Object Hierarchy