📄 mdi.cpp
字号:
#include "stdafx.h"
#include <atlframe.h>
#include <atlgdi.h>
#include <atldlgs.h>
#include "resource.h"
#include "mainfrm.h"
CAppModule _Module;
int Run(LPSTR lpCmdLine = NULL, int nCmdShow = SW_SHOWDEFAULT)
{
CMessageLoop theLoop;
_Module.AddMessageLoop(&theLoop);
CMDIFrame wndMain;
if(wndMain.CreateEx() == NULL)
{
ATLTRACE(_T("Main window creation failed!\n"));
return 0;
}
wndMain.ShowWindow(nCmdShow);
int nRet = theLoop.Run();
_Module.RemoveMessageLoop();
return nRet;
}
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPSTR lpCmdLine, int nCmdShow)
{
::InitCommonControls();
_Module.Init(NULL, hInstance);
int nRet = Run(lpCmdLine, nCmdShow);
_Module.Term();
return nRet;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -