Solved

Intercepting Minimize All

Posted on 1998-10-05
6
168 Views
Last Modified: 2013-11-20
Does anyone know how to catch a Minimize All (right clicking on start bar or otherwise) ?
0
Comment
Question by:penix
[X]
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
6 Comments
 
LVL 8

Expert Comment

by:MikeP090797
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.
0
 

Author Comment

by:penix
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.
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1322956
Just remove the style WS_MINIMIZED and your window cannot be minimized anymore
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:penix
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.
0
 
LVL 1

Expert Comment

by:Bridge
ID: 1322958
Handle the WM_WINDOWPOSCHANGING message
0
 
LVL 23

Accepted Solution

by:
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!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

734 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