Does anyone know how can I open a folder selection menu common dialog box?
Something similar to GetOpenFileName, but with a folder instead of file :)
Thank you.
Printable View
Does anyone know how can I open a folder selection menu common dialog box?
Something similar to GetOpenFileName, but with a folder instead of file :)
Thank you.
Thank you, but just one last thing.
After used once, is there a way to make this dialog display the last selected folder?
Thanks again.
I've already seen this example, but it either not working or I'm simply missing something.
The only difference between this example and my code are the following two lines:I've tried to add the lParam value, but it gave me no effect.Code:bi.lpfn = BrowseCallbackProc;
bi.lParam = (LPARAM) szCurrent;
As for the lpfn, I'm not sure I need it.
How else are you going to make the folder selection without the BrowseCallbackProc setting it with a BFFM_SETSELECTION message?
Quote:
Originally Posted by msdn, BrowseCallbackProc
Not a very elegant solution...
Does anyone know the reason for this weird design??