window 程序中,应用程序什么时候响应 WM_NCPAINT 消息?解决方案

window 程序中,应用程序什么时候响应 WM_NCPAINT消息?window程序中,应用程序什么时候响应WM_NCPAINT消息?[

window 程序中,应用程序什么时候响应 WM_NCPAINT 消息?
window   程序中,应用程序什么时候响应   WM_NCPAINT     消息?

[解决办法]
The WM_NCPAINT message is sent to a window when its frame must be painted.

A window receives this message through its WindowProc function.

[解决办法]
非客户区需要重新绘制时。比如窗口最小化后后又最大化时。它被别的窗口遮住,然后别的窗口挪开了,它又重新可见时。