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 make an own CFileDialog resource?

How to make an own CFileDialog resource?

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutoriallearning
4 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.
  • D Offline
    D Offline
    doctorpi
    wrote on last edited by
    #1

    Hi guys I've seen some articles talking about CFileDialog with preview and the CFileDialog resource is bigger than the usual CFileDialog. I read about "template dialog" but I don't know how this stuff is implemented. What is the procedure to do a custom "CFiledialog" resource? Thanks and Happy New Year Doc

    O 1 Reply Last reply
    0
    • D doctorpi

      Hi guys I've seen some articles talking about CFileDialog with preview and the CFileDialog resource is bigger than the usual CFileDialog. I read about "template dialog" but I don't know how this stuff is implemented. What is the procedure to do a custom "CFiledialog" resource? Thanks and Happy New Year Doc

      O Offline
      O Offline
      Owner drawn
      wrote on last edited by
      #2

      Good that you are thinking about it. Take a look at OPENFILENAME; There is a special field in the structure called lpTemplateName; Here you need to pass in the name of the dialog. This will embed the open dialog inside your dialog. If you want to have a placeholder then put a static control on the dialog with the id stc32. Set this on: OFN_ENABLETEMPLATE If you want to have more then search in MSDN documentation for this keyword. stc32. When you search you will find a topic called "Open and Save As Dialog Boxes". Here you will find all the details. Cool:cool: You also need to start thinking about hooks. If you wanna provide your own preview controls. Tip: lpfnHook member of OPENFILENAME Set this On: OFN_ENABLEHOOK

      Love Forgives--Love Gives--Jesus is Love :)

      --Owner Drawn --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord

      D 1 Reply Last reply
      0
      • O Owner drawn

        Good that you are thinking about it. Take a look at OPENFILENAME; There is a special field in the structure called lpTemplateName; Here you need to pass in the name of the dialog. This will embed the open dialog inside your dialog. If you want to have a placeholder then put a static control on the dialog with the id stc32. Set this on: OFN_ENABLETEMPLATE If you want to have more then search in MSDN documentation for this keyword. stc32. When you search you will find a topic called "Open and Save As Dialog Boxes". Here you will find all the details. Cool:cool: You also need to start thinking about hooks. If you wanna provide your own preview controls. Tip: lpfnHook member of OPENFILENAME Set this On: OFN_ENABLEHOOK

        Love Forgives--Love Gives--Jesus is Love :)

        --Owner Drawn --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord

        D Offline
        D Offline
        doctorpi
        wrote on last edited by
        #3

        Thanks pal, just what I need. Doc

        O 1 Reply Last reply
        0
        • D doctorpi

          Thanks pal, just what I need. Doc

          O Offline
          O Offline
          Owner drawn
          wrote on last edited by
          #4

          doctorpi wrote:

          just what I need.

          Just what the doctor ordered.;P

          Love Forgives--Love Gives--Jesus is Love :)

          --Owner Drawn --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord

          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