Intercepting Minimize All

Does anyone know how to catch a Minimize All (right clicking on start bar or otherwise) ?
penixAsked:
Who is Participating?
 
naveenkohliCommented:
Windows post WM_GETMINMAXINFO message whenever the size of window changes. So you can handle this to decide what you want to do with it!
0
 
MikeP090797Commented:
Just a thought: If you need to know when all windows are minimized, you can use EnumWindows, and then use IsIconic to see if a windows is minimized. You can invoke it after your window is beign minimized.
0
 
penixAuthor Commented:
Thanks for the suggestion. My problem here is that I have a modeless dialog box, which should never be minimized. So what I need to do is intercept the Minimize All somehow to prevent the window from being minimized in the first place. The fact that this is a modeless dialog is adding some complications.

So, does anyone know to intercept this call? Is there a WM for it? thanks in advance.
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
MirkwoodCommented:
Just remove the style WS_MINIMIZED and your window cannot be minimized anymore
0
 
penixAuthor Commented:
Removing the WS_MINIMIZE style only removes the minimize box; doing a "Minimize All" from the start bar still causes the window to be minimized.
0
 
BridgeCommented:
Handle the WM_WINDOWPOSCHANGING message
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.