readme.wzd

来自「《Visual C++ MFC编程实例》配套代码,如果大家正在学习此教程」· WZD 代码 · 共 21 行

WZD
21
字号
/////////////////////////////////////////////////////////////////////
// Modify the Mainframe Class.
/////////////////////////////////////////////////////////////////////

// 1) use the ClassWizard to add a WM_CLOSE handler to this class
void CMainFrame::OnClose() 
{

// 2) only call the DefWindowProc() if the user says yes
	if (AfxMessageBox("Do you really want to exit?",MB_YESNO)==IDYES)
	{
		CMDIFrameWnd::OnClose();
	}
}

/////////////////////////////////////////////////////////////////////
// From: Visual C++ MFC Programming by Example by John E. Swanke
// Copyright (C) 1998 jeswanke. All rights reserved.
/////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?