想不明白了:)
updatewindow()是发送一个WM_PAINT消息,要调用OnPaint()的,可是,如果在OnPaint()里调用了UpdateWindow()函数的话,为什么程序不是死循环呢?
谢谢!

解决方案 »

  1.   

    UpdateWindowIf the update region is empty, WM_PAINT is not sent.看到这句了吗??
      

  2.   

    The UpdateWindow function updates the client area of the specified window by sending a WM_PAINT message to the window if the window's update region is not empty. If the update region is empty, no message is sent. 
      

  3.   

    UpdateWindow检查region,如果值为非空重绘窗体,否则不重绘