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. Dialog Windows Hidden Problem :: MFC

Dialog Windows Hidden Problem :: MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++hardwarehelpquestionlearning
3 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.
  • V Offline
    V Offline
    valikac
    wrote on last edited by
    #1

    Hi. I just discovered an interesting properties of formview in MFC. Consider a formview that displays multiple dialog boxes as windows. The program displays the dialog box windows via ShowWindow(SW_SHOW). However, for some reason the framework will suddenly hide the dialog box windows if the user presses a control key, i.e. ESC, ENTER, etc. Thus, when the user presses a control key, the framework hides all dialog bow windows and all you see is controls that are embedded in the formview via Resource Editor. I would like to know is it possible to circumvent this property of MFC's formview? Thanks, Kuphryn

    P 1 Reply Last reply
    0
    • V valikac

      Hi. I just discovered an interesting properties of formview in MFC. Consider a formview that displays multiple dialog boxes as windows. The program displays the dialog box windows via ShowWindow(SW_SHOW). However, for some reason the framework will suddenly hide the dialog box windows if the user presses a control key, i.e. ESC, ENTER, etc. Thus, when the user presses a control key, the framework hides all dialog bow windows and all you see is controls that are embedded in the formview via Resource Editor. I would like to know is it possible to circumvent this property of MFC's formview? Thanks, Kuphryn

      P Offline
      P Offline
      Peak
      wrote on last edited by
      #2

      Hi maybe you just have to overried OnOK() and OnCancel() of that dialog box classes. cause when you press ENTER OnOK() will be called and the window destroys itself. the same thing happens for ESC and OnCancel()

      V 1 Reply Last reply
      0
      • P Peak

        Hi maybe you just have to overried OnOK() and OnCancel() of that dialog box classes. cause when you press ENTER OnOK() will be called and the window destroys itself. the same thing happens for ESC and OnCancel()

        V Offline
        V Offline
        valikac
        wrote on last edited by
        #3

        Okay. Thanks. Kuphryn

        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