可以查阅MSDN:
CDialog::OnCancel
virtual void OnCancel( );
If you implement the Cancel button in a modeless dialog box, you must
override the OnCancel method and call DestroyWindow from within
it Do not call the base-class method, because it calls EndDialog, which
makes the dialog box invisible but does not destroy it
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)