Solved

Intercepting Minimize All

Posted on 1998-10-05
6
159 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ORA-01403: no data found 43 98
sum13 challenge 24 105
has22 challenge 11 92
canBalance challenge 34 80
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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

813 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

10 Experts available now in Live!

Get 1:1 Help Now