📄 osc.cpp
字号:
// osc.cpp : Defines the class behaviors for the application.
#include "stdafx.h"
#include "osc.h"
#include "oscdlg.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// COscApp
BEGIN_MESSAGE_MAP(COscApp, CWinApp)
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// COscApp construction
COscApp::COscApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only COscApp object
COscApp theApp;
/////////////////////////////////////////////////////////////////////////////
// COscApp initialization
BOOL COscApp::InitInstance()
{
DWORD dwVersion = ::GetVersion();
BOOL bWin31 = (dwVersion > 0x80000000 && (BYTE)dwVersion < 4);
if (bWin31)
{
AfxMessageBox(IDP_WIN32S);
return FALSE;
}
Enable3dControls();
LoadStdProfileSettings(); // Load standard INI file options (including MRU)
COscDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
}
else if (nResponse == IDCANCEL)
{
}
// Since the dialog has been closed, return FALSE so that we exit the
// application, rather than start the application's message pump.
return FALSE;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -