///////////////////////////////////////////////////////////////// Construction/Destruction /////////////////////////////////////////////////////////////////
| 19 | // Construction/Destruction |
| 20 | ////////////////////////////////////////////////////////////////////// |
| 21 | static int CALLBACK BrowseDirectoryCallback( |
| 22 | HWND hWnd, UINT uMsg, LPARAM lParam, LPARAM lpData) |
| 23 | { |
| 24 | // Context was pointer to CFolderDialog instance |
| 25 | CFolderDialog* pFd = (CFolderDialog*)lpData; |
| 26 | |
| 27 | // Let the class handle it |
| 28 | pFd->CallbackFunction(hWnd, uMsg, lParam); |
| 29 | |
| 30 | // Always return 0 as per SHBrowseFolder spec |
| 31 | return 0; |
| 32 | } |
| 33 | |
| 34 | CFolderDialog::CFolderDialog(LPCTSTR lpszFolderName, DWORD dwFlags, CWnd* pParentWnd) |
| 35 | { |
nothing calls this directly
no test coverage detected