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

📄 dialogbar11.cpp

📁 这是书上的代码
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -