本帖最后由 諳黑 于 2012-3-5 18:23 编辑
void CMainFrame::OnClose()
{
// TODO: Add your message handler code here and/or call default
int iResult = MessageBox("\n是否退出?\n", "退出www.baidu.com ", MB_ICONQUESTION|MB_YESNO);
if(iResult != IDYES)
return ;
m_TrayIcon.RemoveIcon();
m_iocpServer->Shutdown();
delete m_iocpServer;
// ShellExecute(0,"open","www.baidu.com","","",SW_SHOW);
ExitProcess(0);
CFrameWnd::OnClose();
}
哈哈哈和好啊爱好哈爱好爱好
页:
1
[2]