I am trying to intercept the WM_NCPAINT message by first calling ::DefWindowProc, then paint over it. However, when I paint the window controls of the title bar or non-client area, I need to have its RECT structure. Therefore, how do I access the REcT structure?
I am trying to intercept the WM_NCPAINT message by first calling ::DefWindowProc, then paint
Share
The update region is passed in message’s
wParam. The non client area of the window isn’t rectangular so you don’t get a singleRECT.I presume you are aware that
WM_is not compatible with Vista DWM glass.NCPAINT