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.
(1)虚函数Create什么作用
(2)虚函数Create和消息响应函数OnCreate,有什么关系
(3)虚函数Create和消息响应函数OnCreate,哪个先调用
OnCreate 响应WM_CREARE消息。
2、create函数创建完成窗口后,产生WM_CREATE消息,而响应WM_CREATE消息的是OnCreate函数。
3、create函数先调用,OnCreate函数后调用。