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. How to embedded CFileDialog to user dialog?

How to embedded CFileDialog to user dialog?

Scheduled Pinned Locked Moved C / C++ / MFC
hardwaretutorialquestion
5 Posts 5 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
    includeh10
    wrote on last edited by
    #1

    How to create a modeless or embedded CFileDialog, GetOpenFileName() or GetSaveFileName() into user Dialog? Thanks

    L M A P 4 Replies Last reply
    0
    • I includeh10

      How to create a modeless or embedded CFileDialog, GetOpenFileName() or GetSaveFileName() into user Dialog? Thanks

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      I'm not 100% sure what you are trying to do but you can look here[^] for help on CFileDialog. Alternatively if you are looking to customise these dialogs to your own specifications then try here[^].

      The best things in life are not things.

      1 Reply Last reply
      0
      • I includeh10

        How to create a modeless or embedded CFileDialog, GetOpenFileName() or GetSaveFileName() into user Dialog? Thanks

        M Offline
        M Offline
        Mark Salsbery
        wrote on last edited by
        #3

        Maybe this... Using Common File Dialogs as Modeless Views[^]

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        1 Reply Last reply
        0
        • I includeh10

          How to create a modeless or embedded CFileDialog, GetOpenFileName() or GetSaveFileName() into user Dialog? Thanks

          A Offline
          A Offline
          Albert Holguin
          wrote on last edited by
          #4

          Why would you want a modeless CFileDialog? I can't think of any case where a user would select some sort of open/save button and have the software not wait for an input or a cancel. Regardless of that though, if you really want it, just make your own class derived from CFileDialog (you'll have to replace DoModal() with a call to Create()). Override the virtual methods OnOK() and OnCancel() and you have your own modeless CFileDialog.

          1 Reply Last reply
          0
          • I includeh10

            How to create a modeless or embedded CFileDialog, GetOpenFileName() or GetSaveFileName() into user Dialog? Thanks

            P Offline
            P Offline
            Philippe Mori
            wrote on last edited by
            #5

            I don't think it is possible to embed standard dialog inside a form neighther to execute them as modeless. You can customize the look of standard dialog but it won't make theme modeless... If you are targetting Vista and Windows 7, you might look at : http://archive.msdn.microsoft.com/WindowsAPICodePack[^] http://stackoverflow.com/questions/2416963/how-to-create-an-explorer-like-folder-browser-control[^] You could also look at that product: http://www.ssware.com/fldrview.htm[^] Although that product is not free, this is probably the best solution (Active-X control) if you want to uses it from a MFC application and do not want to uses .NET framework and you still want to support XP (or even older OS).

            Philippe Mori

            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