Click here to Skip to main content
15,891,845 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,
I have a dialog based application in which there is a main dlg and a child dialog .The child dlg is modal dialog . Now I want to know the event which is called whenever I press window+D to restore the application after minimizing it using same window +D .

In short , I am looking for an event which is called everytime whenever the mfc based application is restored using window +D key combination after minimizing it using the same key combination.

What I have tried:

I tried OnActivateApp Onsize nothing works .
Posted
Updated 27-Jun-18 3:06am
v2
Comments
Mehdi Gholam 27-Jun-18 5:57am    
Just handle the maximized and minimized events for your form.
iampradeepsharma 27-Jun-18 6:58am    
how to catch such an event ?

1 solution

 
Share this answer
 
Comments
iampradeepsharma 27-Jun-18 9:25am    
this event is not gettting called as the application is not minimized or maximized using buttons but through window + D .
Richard MacCutchan 27-Jun-18 10:13am    
I get the messages for a normal Windows program, but not for a Dialog. I suspect that is because a Dialog window is a fixed size and therefor does not need to handle the WM_SIZE message. I guess you could create a custom (subclassed) dialog and add it to the WndProc function in there. But it sounds like a lot of work for something that is not really of any great use.
iampradeepsharma 28-Jun-18 2:31am    
Right! does not seem to be a great choice.
Richard MacCutchan 28-Jun-18 3:06am    
Well that's Windows for you.
iampradeepsharma 2-Jul-18 4:04am    
could you atleast tell me that which event is called whenever you press window + D ?

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