ondraw 是在onpaint中调用的.所以说在ondraw中发送 wm_paint 不对吧!

解决方案 »

  1.   

    就在invalidate内发送,只不过被vc封装其来你看不到
      

  2.   

    to : ysdesigned(清泉) 
    在msdn 中是这样介绍的:Invalidates the entire client area of CWnd. The client area is ed for painting when the next WM_PAINT message occurs. ...
    Windows sends a WM_PAINT message whenever the CWnd update region is not empty and there are no other messages in the application queue for that window.是不是可以这样理解: invalidate 先使client area 等待被重画,然后要求 windows操作系统发 wm_paint 消息??     
      

  3.   

    就是啦。可以在CDocument对应的CView::OnDraw中处理WM_PAINT消息。