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

📄 pagedlg.cpp

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

#include "stdafx.h"
#include "opp.h"
#include "PageDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CPageDlg dialog


CPageDlg::CPageDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CPageDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CPageDlg)
	m_nNum = 0;
	m_nPage = 0;
	//}}AFX_DATA_INIT
}


void CPageDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CPageDlg)
	DDX_Text(pDX, IDC_EDIT1, m_nNum);
	DDX_Text(pDX, IDC_EDIT2, m_nPage);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CPageDlg, CDialog)
	//{{AFX_MSG_MAP(CPageDlg)
	ON_BN_CLICKED(IDC_RADIO1, OnRadio1)
	ON_BN_CLICKED(IDC_RADIO2, OnRadio2)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CPageDlg message handlers

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

	CEdit* pEdit=(CEdit*) GetDlgItem(IDC_EDIT2);
	pEdit->SetReadOnly(true);	
}

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

	CEdit* pEdit=(CEdit*) GetDlgItem(IDC_EDIT2);
	pEdit->SetReadOnly(false);
}

BOOL CPageDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
/*	CEdit* pEdit=(CEdit*) GetDlgItem(IDC_EDIT1);
	pEdit->SetWindowText(NULL);

	pEdit=(CEdit*) GetDlgItem(IDC_EDIT2);
	pEdit->SetWindowText(NULL);*/
	
	// TODO: Add extra initialization here
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

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