dialogbar11.cpp

来自「这是书上的代码」· C++ 代码 · 共 83 行

CPP
83
字号
// Dialogbar11.cpp : implementation file
//

#include "stdafx.h"
#include "const.h"
#include "paintobj.h"
#include "Dialogbar11.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDialogbar1 dialog


CDialogbar1::CDialogbar1(CWnd* pParent /*=NULL*/)
	: CDialog(CDialogbar1::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDialogbar1)
	m_checked = FALSE;
	//}}AFX_DATA_INIT
}


void CDialogbar1::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDialogbar1)
	DDX_Control(pDX, IDC_COMBO1, m_combo1);
	DDX_Check(pDX, IDC_CHECKED, m_checked);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDialogbar1, CDialog)
	//{{AFX_MSG_MAP(CDialogbar1)
	ON_EN_CHANGE(IDC_ANGLE, OnChangeAngle)
	ON_BN_CLICKED(IDC_CHECKED, OnChecked)
	ON_EN_CHANGE(IDC_LENGTH, OnChangeLength)
	ON_CBN_SELCHANGE(IDC_COMBO1, OnSelchangeCombo1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDialogbar1 message handlers

void CDialogbar1::OnChangeAngle() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	
}

void CDialogbar1::OnChecked() 
{
	// TODO: Add your control notification handler code here
	
}

void CDialogbar1::OnChangeLength() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	
}

void CDialogbar1::OnSelchangeCombo1() 
{
	// TODO: Add your control notification handler code here
	
}

⌨️ 快捷键说明

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