Parameters lpszTemplateName Contains a null-terminated string that is the name of a dialog-box template resource. pParentWnd Points to the parent window object (of type CWnd) to which the dialog object belongs. If it is NULL, the dialog object's parent window is set to the main application window.
this不为空,this是父窗口指针,父窗口早就创建完毕了,不是在父窗口创建的时候调用上面的create
LPCTSTR lpszTemplateName,
CWnd* pParentWnd = NULL
);
virtual BOOL Create(
UINT nIDTemplate,
CWnd* pParentWnd = NULL
);
Parameters
lpszTemplateName
Contains a null-terminated string that is the name of a dialog-box template resource. pParentWnd
Points to the parent window object (of type CWnd) to which the dialog object belongs. If it is NULL, the dialog object's parent window is set to the main application window.