prop1.cpp

来自「这是一个用V++编的计算器」· C++ 代码 · 共 78 行

CPP
78
字号
// Prop1.cpp : implementation file
//

#include "stdafx.h"
#include "Cal.h"
#include "Prop1.h"

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

/////////////////////////////////////////////////////////////////////////////
// CProp1 property page

IMPLEMENT_DYNCREATE(CProp1, CPropertyPage)

CProp1::CProp1() : CPropertyPage(CProp1::IDD)
{
	//{{AFX_DATA_INIT(CProp1)
	//}}AFX_DATA_INIT
	
}

CProp1::~CProp1()
{
}

void CProp1::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CProp1)
	DDX_Check(pDX, IDC_CHECK1, m_check1);
	DDX_Check(pDX, IDC_CHECK2, m_check2);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CProp1, CPropertyPage)
	//{{AFX_MSG_MAP(CProp1)
	ON_BN_CLICKED(IDC_CHECK1, OnCheck1)
	ON_BN_CLICKED(IDC_CHECK2, OnCheck2)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CProp1 message handlers

void CProp1::OnCheck1() 
{
	// TODO: Add your control notification handler code here
	if(m_check1!=TRUE)
	{
		m_check1=TRUE;
	}
	else
	{
		m_check1=FALSE;
	}
}



void CProp1::OnCheck2() 
{
	// TODO: Add your control notification handler code here
	if(m_check2!=TRUE)
	{
		m_check2=TRUE;
	}
	else
	{
		m_check2=FALSE;
	}
	
}

⌨️ 快捷键说明

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