Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Wed Jun 18, 2008 5:00 am Post subject: HOWTO: Set a 'special' folder such as the Control Panel, My Network Places, etc as the root folder. |
|
|
Special folders are folders such as My Computer, Control Panel, My Network Places, My Documents, Windows directory, etc. See the SpecialFolderTypes enumeration for a complete list of special folders.
Use the SetSpecialFolderAsRoot() method of FolderView class to set one of the special folders as the root node of FolderView . For example, to set the 'Control Panel' node as root node, use the following code :
[VB6]
fldrVw.SetSpecialFolderAsRoot (SpecialFolderTypes.Controls)
[C++]
//For SpecialFolderTypes.CONTROLS, value = 3
m_fldrVw.SetSpecialFolderAsRoot(3); |
|