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. CFileDialog in CPropertySheet

CFileDialog in CPropertySheet

Scheduled Pinned Locked Moved C / C++ / MFC
comhelpquestion
4 Posts 3 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.
  • J Offline
    J Offline
    johny_d
    wrote on last edited by
    #1

    Is there any way of making a file dialog a member of a property sheet (just like the one in MS VB6)? Plz help! Live long and in prosper johny74656@gmail.com

    B 1 Reply Last reply
    0
    • J johny_d

      Is there any way of making a file dialog a member of a property sheet (just like the one in MS VB6)? Plz help! Live long and in prosper johny74656@gmail.com

      B Offline
      B Offline
      BlackDice
      wrote on last edited by
      #2

      Yes, there is! I've done this on a regular dialog, I don't have much experience with property pages, but I think it will work. Change the id of the dialog that you use for your property page to IDD_FILEOPEN_EX. Delete the OK and Cancel buttons. Select 'Clip Siblings' and 'Clip Children' in the dialog's properties. Create a static control and change it's id to "stc32" (no quotes). In your Resource.h file, delete the definition for stc32. "stc32 is a constant #defined in dlgs.h, so #include dlgs.h in your .rc file. the file dialog should now show up in place of the static control on that dialog. My articles www.stillwaterexpress.com BlackDice

      J M 2 Replies Last reply
      0
      • B BlackDice

        Yes, there is! I've done this on a regular dialog, I don't have much experience with property pages, but I think it will work. Change the id of the dialog that you use for your property page to IDD_FILEOPEN_EX. Delete the OK and Cancel buttons. Select 'Clip Siblings' and 'Clip Children' in the dialog's properties. Create a static control and change it's id to "stc32" (no quotes). In your Resource.h file, delete the definition for stc32. "stc32 is a constant #defined in dlgs.h, so #include dlgs.h in your .rc file. the file dialog should now show up in place of the static control on that dialog. My articles www.stillwaterexpress.com BlackDice

        J Offline
        J Offline
        johny_d
        wrote on last edited by
        #3

        Thx, this works! Live long and in prosper johny74656@gmail.com

        1 Reply Last reply
        0
        • B BlackDice

          Yes, there is! I've done this on a regular dialog, I don't have much experience with property pages, but I think it will work. Change the id of the dialog that you use for your property page to IDD_FILEOPEN_EX. Delete the OK and Cancel buttons. Select 'Clip Siblings' and 'Clip Children' in the dialog's properties. Create a static control and change it's id to "stc32" (no quotes). In your Resource.h file, delete the definition for stc32. "stc32 is a constant #defined in dlgs.h, so #include dlgs.h in your .rc file. the file dialog should now show up in place of the static control on that dialog. My articles www.stillwaterexpress.com BlackDice

          M Offline
          M Offline
          Maximilien
          wrote on last edited by
          #4

          Hi, Is this answer still valid while using Visual Studio 2019 ? The id IDD_FILEOPEN_EX does not exists. Do I need to include another RC file if I include dlgs.h ? Thanks.

          I'd rather be phishing!

          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