Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Intercepting Minimize All

Posted on 1998-10-05
Last Modified: 2013-11-20
Does anyone know how to catch a Minimize All (right clicking on start bar or otherwise) ?
Question by:penix

Expert Comment

ID: 1322954
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.

Author Comment

ID: 1322955
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.
LVL 13

Expert Comment

ID: 1322956
Just remove the style WS_MINIMIZED and your window cannot be minimized anymore
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.


Author Comment

ID: 1322957
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.

Expert Comment

ID: 1322958
LVL 23

Accepted Solution

naveenkohli earned 100 total points
ID: 1322959
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!

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows Drag & Drop Location 2 108
Expand data scrubbing tool 13 35
substring method in java 1 129
maven archtype selection in eclipse 1 57
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question