activating windows
-
Hi, When a user activates a window (in the program I am writing) I was wondering what message it sends and what function I can use to add some additional functionality when this happens. Thanks for any tips.
-
-
Hi, When a user activates a window (in the program I am writing) I was wondering what message it sends and what function I can use to add some additional functionality when this happens. Thanks for any tips.
Your question is sort of ambigious since everything is technicaly a window, even the controls on a dialog. For those, handle the
WM_SETFOCUS
message. For "main" windows, handleWM_ACTIVATEAPP
orWM_ACTIVATE
. There's alsoWM_SETACTIVE
for property pages.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne