forbit.cpp

来自「本原代码集合了树形控件」· C++ 代码 · 共 57 行

CPP
57
字号
// forbit.cpp : implementation file
//

#include "stdafx.h"
#include "hellor14.h"
#include "forbit.h"

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

/////////////////////////////////////////////////////////////////////////////
// forbit dialog


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


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


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

/////////////////////////////////////////////////////////////////////////////
// forbit message handlers

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

void forbit::OnRadio2() 
{
	// TODO: Add your control notification handler code here
	i=0;
}

⌨️ 快捷键说明

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