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. Minimizing a dialog...

Minimizing a dialog...

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
2 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
    puzzolino
    wrote on last edited by
    #1

    Hi, I don't like modal dialogs that miss the minimize button and deny the user from minimizing the application, when they are open and stay on top of the main window. Can one handle the WM_SYSCOMMAND message and let both the dialog and the main window minimize & restore at the same time ? Can anyone help ? Thanks in advance.

    M 1 Reply Last reply
    0
    • P puzzolino

      Hi, I don't like modal dialogs that miss the minimize button and deny the user from minimizing the application, when they are open and stay on top of the main window. Can one handle the WM_SYSCOMMAND message and let both the dialog and the main window minimize & restore at the same time ? Can anyone help ? Thanks in advance.

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      Assuming you can add a minimize button (which I think should just be a case of adding the WS_MINIMIZE style to the dialog template), you should be able to handle WM_SIZECHANGED and minimize your owner window. I'll admit this is a guess! -- Mike Dimmick

      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