osc.cpp

来自「示波器源码 示波器源码」· C++ 代码 · 共 61 行

CPP
61
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?