CMainFrame中
虚函数Create和消息响应函数OnCreate,有什么区别?

解决方案 »

  1.   

    The framework calls this member function when an application requests that the Windows window be created by calling the Create or CreateEx member function. The CWnd object receives this call after the window is created but before it becomes visible. OnCreate is called before the Create or CreateEx member function returns. 
      

  2.   

    OnCreate 在Create 创建窗口时响应WM_CREATE 消息,使有机会更改设置CREATESTRUCT
      

  3.   

    能更明确一点吗?
    (1)虚函数Create什么作用
    (2)虚函数Create和消息响应函数OnCreate,有什么关系
    (3)虚函数Create和消息响应函数OnCreate,哪个先调用
      

  4.   

    Create 创建窗口,发出WM_CREARE消息。   
    OnCreate   响应WM_CREARE消息。 
      

  5.   

    1、create实际创建窗口
    2、create函数创建完成窗口后,产生WM_CREATE消息,而响应WM_CREATE消息的是OnCreate函数。
    3、create函数先调用,OnCreate函数后调用。