⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 program.cpp

📁 模拟操作系统存储功能的软件可以供教学研究
💻 CPP
字号:
// ProGram.cpp : implementation file
//

#include "stdafx.h"
#include "opp.h"
#include "ProGram.h"

#include "main.h"

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

/////////////////////////////////////////////////////////////////////////////
// CProGram dialog


CProGram::CProGram(CWnd* pParent /*=NULL*/)
	: CDialog(CProGram::IDD, pParent)
{
	//{{AFX_DATA_INIT(CProGram)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	sign = 0;
}


void CProGram::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CProGram)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CProGram, CDialog)
	//{{AFX_MSG_MAP(CProGram)
	ON_BN_CLICKED(IDC_RADIO1, OnRadio1)
	ON_BN_CLICKED(IDC_RADIO2, OnRadio2)
	ON_BN_CLICKED(IDC_RADIO3, OnRadio3)
	ON_BN_CLICKED(IDC_RADIO4, OnRadio4)
	ON_WM_CTLCOLOR()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CProGram message handlers

void CProGram::OnRadio1() 
{
	// TODO: Add your control notification handler code here
	sign = 1;
	
}


void CProGram::OnRadio2() 
{
	// TODO: Add your control notification handler code here
	sign = 2;
}

void CProGram::OnRadio3() 
{
	// TODO: Add your control notification handler code here
	sign = 3;
}

void CProGram::OnRadio4() 
{
	// TODO: Add your control notification handler code here
	sign = 4;
}

HBRUSH CProGram::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) 
{
	HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
	
	// TODO: Change any attributes of the DC here
	
	// TODO: Return a different brush if the default is not desired
	return hbr;
}

⌨️ 快捷键说明

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