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. Modal dialog removes my App from Alt+Tab windows...

Modal dialog removes my App from Alt+Tab windows...

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
5 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.
  • I Offline
    I Offline
    insanely420
    wrote on last edited by
    #1

    I have a MDI application whenever I am opening a modal dialog box which is a child of a MDI window, my application seems to be lost from the Alt+Tab program list of Windows? I am using WinAPI and DialogBoxParam() function to create the dialog. Why is it happening? Any ideas how to resolve it.

    B 1 Reply Last reply
    0
    • I insanely420

      I have a MDI application whenever I am opening a modal dialog box which is a child of a MDI window, my application seems to be lost from the Alt+Tab program list of Windows? I am using WinAPI and DialogBoxParam() function to create the dialog. Why is it happening? Any ideas how to resolve it.

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

      Shouldn't the modal dialog be a child of the main app window? The parent window should be AfxGetApp()->m_pMainWnd.  onwards and upwards...

      I 2 Replies Last reply
      0
      • B basementman

        Shouldn't the modal dialog be a child of the main app window? The parent window should be AfxGetApp()->m_pMainWnd.  onwards and upwards...

        I Offline
        I Offline
        insanely420
        wrote on last edited by
        #3

        I am using Win32 API's. You mean to say that instead of sending the MDI Child Window as Parent for the dialog I send the Main App Window handle as the parent.

        1 Reply Last reply
        0
        • B basementman

          Shouldn't the modal dialog be a child of the main app window? The parent window should be AfxGetApp()->m_pMainWnd.  onwards and upwards...

          I Offline
          I Offline
          insanely420
          wrote on last edited by
          #4

          Well...I tried changing the parent window but its not working. It seems that whenever I am doing Alt+Tab, both the dialog window and the main app window loses focus and perhaps that is causing the problem.....

          I 1 Reply Last reply
          0
          • I insanely420

            Well...I tried changing the parent window but its not working. It seems that whenever I am doing Alt+Tab, both the dialog window and the main app window loses focus and perhaps that is causing the problem.....

            I Offline
            I Offline
            insanely420
            wrote on last edited by
            #5

            Well....the app is there if I switch between apps 1-2 times...then its GONE!!!!

            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