你去看看MSDN中对UpdateWindow()函数的解释!

解决方案 »

  1.   

    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
      

  2.   

    pWnd->UpdateWindow();
    不是在onPaint()里面用的,他知识发送一个WM_PAINT消息给view,你把pWnd->UpdateWindow();去掉也是一样的
      

  3.   

    你对Windows的消息机制理解欠缺.两个一个都不正确.
    建议你在弄明白之前, 不要继续. 这是基本功! 切记.