Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I have windows applications which when I press "X" or "Close” hwnd got from GetMessage is NULL. That is OK. But when I open some windows applications, they are building group on Taskbar. Which message will be sent when I select “Close Group” by windows XP?
How can I distinguish that user has press "X" or “Close Group”?

Thanks in advance
M.H
Posted
Comments
Chandrasekharan P 9-Nov-11 6:04am    
Why don't you use the spy++ tool for this? it will help to see which all functions get called when you do different clicks and movement of the mouse

1 solution

I suspect that all close group does is loop over all the windows affected and sends a WM_CLOSE to each of them individually. In other words, it acts just like you went to each windows separately and clicked [X].

That would be the more likely implementation instead of going off and creating a new windows message and teaching every application how to process it. As the other person suggested, use SPY++ to watch what messages fly by when you do that to verify.
 
Share this answer
 
v2
Comments
Amir Mahfoozi 9-Nov-11 12:51pm    
+5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900