Solved

Intercepting Minimize All

Posted on 1998-10-05
6
156 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
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Include multiple hostnames in this command? 3 52
not able to insert into temp table 68 150
zeroFront challenge 7 71
EvenOdd challenge 10 83
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

746 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now