WM_NCPAINT

This message is sent to a window when its frame needs painting.

Parameter Description  

wParam Is not used.  
lParam Is not used.  

Default Action

The DefWindowProc function paints the window frame.

Comments

An application can intercept this message and paint its own custom window frame. Remember that the clipping region for a window is always rectangular, even if the shape of the frame is altered.