News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

detect active window and redraw?

Started by RHL, February 02, 2012, 03:07:43 AM

Previous topic - Next topic

RHL

Hello all! : )
well, I came to ask for help, I know how I can detect when a window goes of background to active or when a window is redraws?
some reference or code, please  :U

dedndave

the window receives a WM_SIZE message
wParam carries additional information
http://msdn.microsoft.com/en-us/library/windows/desktop/ms632646%28v=vs.85%29.aspx

you can also use WM_ACTIVATE
http://msdn.microsoft.com/en-us/library/windows/desktop/ms646274%28v=vs.85%29.aspx

but, WM_SIZE carries more info - the window is sent both messages, along with a few others

RHL

thanks dedndave, I will make tests and comment  :thumbu