void UpdateWindow( );ResUpdates the client area by sending aWM_PAINT message if the update region is not empty. The UpdateWindow member function sends a WM_PAINT message directly, bypassing the application queue. If the update region is empty, WM_PAINT is not sent
不是在onPaint()里面用的,他知识发送一个WM_PAINT消息给view,你把pWnd->UpdateWindow();去掉也是一样的
建议你在弄明白之前, 不要继续. 这是基本功! 切记.