OnDraw和OnPaint函数区别?

解决方案 »

  1.   

    CView::OnDraw
    This method is called by the framework to render an image of the document. The framework calls this method to perform screen display, printing, and print preview, and it passes a different device context in each case. There is no default implementation.
    CWnd::OnPaint
    The framework calls this member function when Windows or an application makes a request to repaint a portion of an application's window.
      

  2.   

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/pantdraw_88ac.asp