Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. Need a hint on implementing path picker WTL control.

Need a hint on implementing path picker WTL control.

Scheduled Pinned Locked Moved ATL / WTL / STL
c++data-structuresjsonhelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Ilushka
    wrote on last edited by
    #1

    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.

    A 1 Reply Last reply
    0
    • I Ilushka

      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.

      A Offline
      A Offline
      AlexO
      wrote on last edited by
      #2

      SHBrowseForFolder might work for you

      I 1 Reply Last reply
      0
      • A AlexO

        SHBrowseForFolder might work for you

        I Offline
        I Offline
        Ilushka
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups