// IOFrame.cpp : implementation file // #include "stdafx.h" #include "Sys.h" #include "DIOFrm.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CDIOFrm IMPLEMENT_DYNCREATE(CDIOFrm, CMDIChildWnd) CDIOFrm::CDIOFrm() { } CDIOFrm::~CDIOFrm() { } BEGIN_MESSAGE_MAP(CDIOFrm, CMDIChildWnd) //{{AFX_MSG_MAP(CDIOFrm) ON_WM_CLOSE() //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CDIOFrm message handlers void CDIOFrm::ActivateFrame(int nCmdShow) { // TODO: Add your specialized code here and/or call the base class nCmdShow = SW_SHOWMAXIMIZED; // 使子帧窗口最大化 CMDIChildWnd::ActivateFrame(nCmdShow); } extern BOOL bWaitInt; void CDIOFrm::OnClose() { // TODO: Add your message handler code here and/or call default if(bWaitInt) { AfxMessageBox(L"中断没有释放,您不能退出", MB_ICONWARNING); return; } CMDIChildWnd::OnClose(); }