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. C / C++ / MFC
  4. MFC open dialog enhancement

MFC open dialog enhancement

Scheduled Pinned Locked Moved C / C++ / MFC
c++sysadmindata-structureshelptutorial
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
    IGeorgeI
    wrote on last edited by
    #1

    Hey guys I am using MFC -> File Open dialog box, which works fine. I have noticed other applications use a different style of dialog box wich has quick buttons on the left that brings the navigation tree in the open dialog box to those locations. For example in Microsft Word, when you go File -> Open, there are 5 buttons on the left (History, My Documents, Desktop, Favorites, My Network places) I would also like the same type of "File Open" dialog box. How do I impliment this. I have searched the MSDN documentation and have come up with nothing. Any help appreciated George W Software Developer www.zsystems.ca

    D 1 Reply Last reply
    0
    • I IGeorgeI

      Hey guys I am using MFC -> File Open dialog box, which works fine. I have noticed other applications use a different style of dialog box wich has quick buttons on the left that brings the navigation tree in the open dialog box to those locations. For example in Microsft Word, when you go File -> Open, there are 5 buttons on the left (History, My Documents, Desktop, Favorites, My Network places) I would also like the same type of "File Open" dialog box. How do I impliment this. I have searched the MSDN documentation and have come up with nothing. Any help appreciated George W Software Developer www.zsystems.ca

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      It's called the "Places" bar, and comes with a new version of commdlg.dll. So instead of using CFileDialog, you'll have to use GetOpenFileName(). If the OPENFILENAME structure uses a hook procedure (or the OFN_ENABLETEMPLATE is set), you will get the old-style dialog; otherwise, you will get the one with the "Places" bar. This explains why MFC apps get the old dialog—because CFileDialog, like all MFC common dialogs, uses a hook procedure. Search MSDN, or the Web, for details.

      I 1 Reply Last reply
      0
      • D David Crow

        It's called the "Places" bar, and comes with a new version of commdlg.dll. So instead of using CFileDialog, you'll have to use GetOpenFileName(). If the OPENFILENAME structure uses a hook procedure (or the OFN_ENABLETEMPLATE is set), you will get the old-style dialog; otherwise, you will get the one with the "Places" bar. This explains why MFC apps get the old dialog—because CFileDialog, like all MFC common dialogs, uses a hook procedure. Search MSDN, or the Web, for details.

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

        Thanks for help I will look into this. George W Software Developer www.zsystems.ca

        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