From: Thomas Weidenmueller
I get the messages in the following order:
received WM_NCPAINT Before GetUpdateRect After GetUpdateRect
That's during the initial paint, the WM_NCPAINT is sent during window creation then so there's no need for GetUpdateRect to send it again. Try clicking in the window, this will invalidate the window and then you'll see "before, WM_NCPAINT, after".
GvG