SHBrowseForFolder
C / C++ / MFC
3
Posts
3
Posters
0
Views
1
Watching
-
Does anyone can help discover way how to start folder dialog by SHBrowseForFolder function into any folder chosen by me? =how to set initial directory? Thank you for your help.
-
Does anyone can help discover way how to start folder dialog by SHBrowseForFolder function into any folder chosen by me? =how to set initial directory? Thank you for your help.
The BROWEINFO struct has a member lpfn where you define a Callback function. The Callback could the lokk like:
switch(uMsg) { case BFFM_INITIALIZED: { if(!m_biark.IsEmpty()){ ::SendMessage(hwnd,BFFM_SETSELECTION,TRUE,(DWORD) ((LPCTSTR)m_biark)); } break; } default: break; }