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

Thomas Weidenmueller w3seek at reactos.com
Mon Dec 5 10:32:49 CET 2005


Filip Navara wrote:
> I overlooked that the code used GetUpdateRect with the last parameter
> set to FALSE, it should be set to TRUE. In that case GetUpdateRect is
> responsible for sending the WM_NCPAINT message and cleaning the update
> region.

No, that shouldn't be a problem. The last parameter just specifies if
the update region is supposed to be erased (by sending a WM_ERASEBKGND
message). It doesn't affect the validation of update region at all.
Having it set to TRUE will likely cause more flickering because it's not
needed to fill the area.

- Thomas


More information about the Ros-dev mailing list