[ros-dev] [gvg] 19895: Make sure that WM_NCPAINT messages are generated by calling BeginPaint

Ge van Geldorp gvg at reactos.org
Mon Dec 5 00:00:23 CET 2005


> From: Filip Navara
>
> The previous code was perfectly valid. Why did you change it? 
> If GetUpdateRect returns FALSE then there's no need to call 
> BeginPaint...

Possibly I fixed it wrong. Try minimizing the window with the old code. This
will set the WINDOWOBJECT_NEED_NCPAINT flag. As a result, an endless stream
of WM_PAINT messages is generated, 'cause that flag is never reset. Calling
BeginPaint resets the flag.

GvG



More information about the Ros-dev mailing list