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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. customize CFileDialog for dynamic Files of Type

customize CFileDialog for dynamic Files of Type

Scheduled Pinned Locked Moved C / C++ / MFC
c++csstutorialquestion
1 Posts 1 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.
  • S Offline
    S Offline
    sysop HAL9K com
    wrote on last edited by
    #1

    My boss wants to be able to change Files of Type pulldown dynamically inside a CFildDialog callback. For example, we would start with a list of 5 file types and the last file type is "More...". If the user clicks on "More..." then the Files of Type combo is to be repopulated with 25 file types, for example. Then the last entry is "Less..." and so the user can reduce back to 5 file types. Has anyone seen this done in a commercial product or a demo? I'm no stranger to explorer style hookprocs, written them in (and out of) MFC. I can capture the child control notification, I clear the combobox, repopulate with a new list. However, the next time the user comes along and picks a type, I get a null pointer in COMMDLG32.DLL. Should I give up or is there hope?

    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