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. cmb1 (and edt1) and OFN_EXPLORER

cmb1 (and edt1) and OFN_EXPLORER

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
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.
  • A Offline
    A Offline
    Atlantys
    wrote on last edited by
    #1

    So I've got this nifty CFileDialog-extended class that doesn't use the OFN_EXPLORER flag. I need to check the extension the user selected, so to do that, I look at the "cmb1" control (well, also some other Explorer-style control identifiers) So everything was going well and good, until I found an article on how to allow CFileDialog-derived classes to use the OFN_EXPLORER flag (basically make the OPENFILENAME size 12bytes larger). And now the ASSERT fails. :((

    CWnd* pComboBox = GetParent()->GetDlgItem(cmb1);
    ASSERT_VALID(pComboBox);

    So, if anyone can point me in the right direction, or just outright solve this problem, that would be great! (I'd rather not have to use Win32 to solve this though) Thanks in advance.

    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