Can anyone give me a way to put in my window (HWND) a TreeView like the picture below:
I withdrew it from the window created by SHBrowseForFolder, and should have the same function, navigate between directories and files.
I use C & Win32 API.
It's a Win32 & C FAQ (SH)
See Advanced Win32 api newsgroup :
(C and C++ code)
I tried SHCreateShellFolderViewEx(), called all the libraries available on MinGW and still get the error: undefined reference to 'SHCreateShellFolderViewEx'.
#define _WIN32_WINNT 0x0500
Somebody have any idea?
Did you #include "shlobj.h" and link to shell32.lib? Its also reccomended by Microsoft to use SHCreateShellFolderView instead.
I used shlobj.h, libshell32.a, SHCreateShellFolderView() and SHCreateShellFolderViewEx(), and the compiler return an error:
undefined reference to 'SHCreateShellFolderView'.
undefined reference to 'SHCreateShellFolderViewEx'.