MFC-Dialog各函数的执行顺序

CDlgTestDlg::CDlgTestDlg 
 CDlgTestDlg::DoModal 
 CDialog::DoModal 
 CDlgTestDlg::PreSubclassWindow 
 CDlgTestDlg::OnCreate 
 CDlgTestDlg::OnSize 
 CDialog::OnInitDialog 
 CWndUpdateData(FALSE) 
 CDlgTestDlg::DoDataExchange 
 CDlgTestDlg::OnInitDialog 
 CDlgTestDlg::OnShowWindow 
 CDlgTestDlg::OnPaint 
 CDlgTestDlg::OnCtlColor 
 CDlgTestDlg::PreTranslateMessage 
 CDlgTestDlg::OnPaint 
用户输入数据... 
用户单击OK 
 CDlgTestDlg::OnOK 
 CDialog::OnOK 
 CWnd::UpdateData(TRUE) 
 CDlgTestDlg::DoDataExchange 
 CDlgTestDlg::OnCtlColor 
 CDlgTestDlg::OnDestroy 
 CDlgTestDlg::PostNcDestroy 

  (转)

你可能感兴趣的:(dialog)