Need a hint on implementing path picker WTL control.
-
Subject. :) I just cant think of where to start from. I guess i should inherit WTL CTreeViewCtrl, and add functionality for parsing computers directory tree. So would you be so kind to give me links to samples of doing that? Any help would be appreciated, thanks. Sincerely yours, Ilya Kalujny.
-
Subject. :) I just cant think of where to start from. I guess i should inherit WTL CTreeViewCtrl, and add functionality for parsing computers directory tree. So would you be so kind to give me links to samples of doing that? Any help would be appreciated, thanks. Sincerely yours, Ilya Kalujny.
-
Yeah, but isnt it modal? When i try to use it like this: BROWSEINFO bi = { 0 }; bi.lpszTitle = _T("Pick a Directory"); bi.hwndOwner = m_hWnd; LPITEMIDLIST pidl = SHBrowseForFolder ( &bi ); if ( pidl != 0 ) { // get the name of the folder TCHAR path[MAX_PATH]; if ( SHGetPathFromIDList ( pidl, path ) ) { } // free memory used IMalloc * imalloc = 0; if ( SUCCEEDED( SHGetMalloc ( &imalloc )) ) { imalloc->Free ( pidl ); imalloc->Release ( ); } } I Get a modal dialog that is definitely not what i want :( Well, if only i had a possibility to modify that dialog somehow (ie. insert my onw controls and write according handlers) that would be nice, but how?? More hints pleaaaase :) Sincerely yours, Ilya Kalujny.