摘要: vc如何退出程序。 1、OnOK()或OnCancel()//只对窗口程序有用2、PostQuitMessage(0);//最常用3、ExitProcess(0);4、void CMainFrame::OnClose() { // TODO: Add your message handler code here and/or call default if (MessageBox("确定要退出吗?","提示",MB_YESNO|MB_DEFBUTTON2)==IDYES) { CFrameWnd::OnClose(); } }如:void CCsView 阅读全文
posted @ 2014-04-12 19:48 32岁了学VC 阅读(451) 评论(0) 推荐(0) 编辑