Thread: Explorer View

  1. #1
    A.I Programmer
    Join Date
    Mar 2007
    Location
    Teresina - Brazil
    Posts
    47

    Explorer View

    Hello,

    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.

    Thanks!

  2. #2
    Registered User
    Join Date
    Apr 2007
    Posts
    137
    It's a Win32 & C FAQ (SH)
    See Advanced Win32 api newsgroup :
    news://194.177.96.26/comp.os.ms-wind...ogrammer.win32
    (C and C++ code)

  3. #3
    A.I Programmer
    Join Date
    Mar 2007
    Location
    Teresina - Brazil
    Posts
    47
    I tried SHCreateShellFolderViewEx(), called all the libraries available on MinGW and still get the error: undefined reference to 'SHCreateShellFolderViewEx'.

    Also added:

    #define _WIN32_WINNT 0x0500

    Somebody have any idea?

  4. #4
    Registered User
    Join Date
    Dec 2007
    Posts
    214
    Did you #include "shlobj.h" and link to shell32.lib? Its also reccomended by Microsoft to use SHCreateShellFolderView instead.

  5. #5
    A.I Programmer
    Join Date
    Mar 2007
    Location
    Teresina - Brazil
    Posts
    47
    I used shlobj.h, libshell32.a, SHCreateShellFolderView() and SHCreateShellFolderViewEx(), and the compiler return an error:

    Code:
    undefined reference to 'SHCreateShellFolderView'.
    or

    Code:
    undefined reference to 'SHCreateShellFolderViewEx'.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Tree View control not appearing
    By Garfield in forum Windows Programming
    Replies: 1
    Last Post: 03-07-2004, 01:47 PM
  2. Windows explorer folder view settings
    By anonytmouse in forum Tech Board
    Replies: 1
    Last Post: 10-06-2003, 02:59 AM
  3. Set View Position in CEditView :: MFC
    By kuphryn in forum Windows Programming
    Replies: 1
    Last Post: 05-21-2002, 09:27 PM
  4. Explorer detail view style control.
    By Robert602 in forum Windows Programming
    Replies: 3
    Last Post: 05-20-2002, 12:55 AM
  5. Determining Active View :: MFC
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 04-25-2002, 07:34 PM