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. Strange 'minimize button' action.

Strange 'minimize button' action.

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

    When I click on minimize box, my CDialog derived window goes to taskbar but also ALL other thread-separated CDialog windows minimize?! How to fix it? Those thread-separated windows are modeless, created in InitInstance() of CWinThread derived class. Thanks for help:)

    P 1 Reply Last reply
    0
    • P PatrykDabrowski

      When I click on minimize box, my CDialog derived window goes to taskbar but also ALL other thread-separated CDialog windows minimize?! How to fix it? Those thread-separated windows are modeless, created in InitInstance() of CWinThread derived class. Thanks for help:)

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

      By default, parent of dialog is set to NULL. Which makes application's main window as parent of dialog. Which is happening in your case. To avoid it, you can set desktop window as parent window of dialog you dont want to minimize with main dialog. But, in this case, this dialog will appear in taskbar,too.:)

      Prasad Notifier using ATL | Operator new[],delete[][^]

      P 1 Reply Last reply
      0
      • P prasad_som

        By default, parent of dialog is set to NULL. Which makes application's main window as parent of dialog. Which is happening in your case. To avoid it, you can set desktop window as parent window of dialog you dont want to minimize with main dialog. But, in this case, this dialog will appear in taskbar,too.:)

        Prasad Notifier using ATL | Operator new[],delete[][^]

        P Offline
        P Offline
        PatrykDabrowski
        wrote on last edited by
        #3

        Thanks, that explains a lot. So, creating dialogs with desktop as a parent window will make those windows full separated from the application's main window? I ask because now when I create dialogs with NULL parent window, I cannot move main application's window on the top of their 'children' by activating it. It is getting the focus, titlebar is changing to active and all controls work but the window is not placed on the top of other windows. Is it also this case or something else is going on? Thanks again:)

        P 1 Reply Last reply
        0
        • P PatrykDabrowski

          Thanks, that explains a lot. So, creating dialogs with desktop as a parent window will make those windows full separated from the application's main window? I ask because now when I create dialogs with NULL parent window, I cannot move main application's window on the top of their 'children' by activating it. It is getting the focus, titlebar is changing to active and all controls work but the window is not placed on the top of other windows. Is it also this case or something else is going on? Thanks again:)

          P Offline
          P Offline
          prasad_som
          wrote on last edited by
          #4

          PatrykDabrowski wrote:

          Is it also this case

          I dont think so.

          Prasad Notifier using ATL | Operator new[],delete[][^]

          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