void CWelcomeDlg::OnClose() 
{
    // TODO: Add your message handler code here and/or call default
    if(MessageBox("Are you sure close this windows?", "closing", MB_OKCANCEL|MB_ICONQUESTION) == IDOK)
    {
        CDialog::OnClose();    
    }
    //创建一个基于对话框的应用程序.
    //通过类向导选择WM_CLOSE消息事件
    //在对话框的消息事件中实现代码

}

相关文章:

  • 2021-12-23
  • 2021-09-27
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2022-01-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-08
  • 2021-12-23
  • 2021-06-24
  • 2022-12-23
  • 2021-11-29
  • 2021-11-26
相关资源
相似解决方案