How to Use the Shell API function SHBrowseForFolder() ?
Answer / Akhilesh Kumar Bharti
SHBrowseForFolder() is a Shell API function used to display the common file dialog for selecting a folder. In Delphi, you can use the ComObjActive, CreateObject functions to create an instance of the Shell32 library and call this function. Here's a simple example:nnTShell32 := ComObjActive(CLSID_CShellFolder);nSHBrowseForFolder(TShell32, PVoid(@lpf), 0, 0, SW_OPENFOLDER)nWhere lpf is an IPersistFile pointer object.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to prevent the user from moving or sizing my form?
How to Hide the application from the Windows Taskbar?
'Translate error, value out of bounds' error what does these errors mean?
How to connect to an InterBase database using the BDE API?
How to Set custom tabstops in a ListBox?
How to get DLL function parameter listings ?
How to Initialize an array or record to null?
How to change the shape of your forms?
How to Place multiple copies of a component on a form?
How to Get a list of valid time zones from windows?
How do I write a global error handler?
How to Print a WEB page with the HTML control?