useframe.cpp
来自「《windows程序设计》王艳平版的书籍源代码」· C++ 代码 · 共 24 行
CPP
24 行
/////////////////////////////////////////
// UseFrame.cpp文件
#include "UseFrame.h"
CMyApp theApp; // 应用程序实例对象
///////////////////////////////////////
// CMyApp类
BOOL CMyApp::InitInstance()
{
::MessageBox(NULL, "主线程开始执行!", "CMyApp::InitInstance", 0);
return FALSE; // 不要进入消息循环
}
int CMyApp::ExitInstance()
{
::MessageBox(NULL, "主线程将要退出!", "CMyApp::ExitInstance", MB_OK);
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?