runoptions.cpp

来自「一个完全使用MFC框架开发的C++编译器的代码。功能十分强大可以编译大型程序。」· C++ 代码 · 共 61 行

CPP
61
字号
// RunOptions.cpp : implementation file
//

#include "stdafx.h"
#include "quincy.h"
#include "OptionsSheet.h"
#include "RunOptions.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CRunOptions dialog


CRunOptions::CRunOptions(CWnd* pParent)
	: CPropertyPage(CRunOptions::IDD)
{
	//{{AFX_DATA_INIT(CRunOptions)
	m_strCommandLine = _T("");
	m_strRuntimeDirectory = _T("");
	m_CommandLinePromptOption = -1;
	//}}AFX_DATA_INIT
}


void CRunOptions::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CRunOptions)
	DDX_Text(pDX, IDC_COMMAND_LINE, m_strCommandLine);
	DDX_Text(pDX, IDC_RUNTIMEDIRECTORY, m_strRuntimeDirectory);
	DDX_Radio(pDX, IDC_NOCOMMANLINE, m_CommandLinePromptOption);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CRunOptions, CPropertyPage)
	//{{AFX_MSG_MAP(CRunOptions)
	ON_BN_CLICKED(IDC_BROWSERUNTIMEWK, OnBrowseruntimewk)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CRunOptions message handlers

BOOL CRunOptions::OnSetActive() 
{
	static_cast<COptionsSheet*>(GetParent())->RegisterActiveIndex();
	return CPropertyPage::OnSetActive();
}

void CRunOptions::OnBrowseruntimewk() 
{
	if (theApp.SelectFolder("Runtime Working Files", &m_strRuntimeDirectory))
		UpdateData(0);
}

⌨️ 快捷键说明

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