Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Messages... Simple ones I hope...

Status
Not open for further replies.

ronnyjljr

IS-IT--Management
Nov 23, 2003
249
US
Ok here goes,

What is the message that is sent when a user clicks the minimize button?

Secondly, what function can I override so that I can know when a window loses focus?

Thanks,
Ron

cout << "If you don't know where you want to go, we'll make sure you get taken";
 
When the window is maximized, WM_SIZE is sent with wParam (in MFC, nType) equal to SIZE_MAXIMIZED.

When the window loses focus, WM_ACTIVATE is sent with wParam (in MFC, nState) equal to WA_INACTIVE.
 
Superb!

Thanks!

cout << "If you don't know where you want to go, we'll make sure you get taken";
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top