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

📄 brush.cpp

📁 画直线
💻 CPP
字号:
// brush.cpp : implementation file
//

#include "stdafx.h"
#include "38.h"
#include "brush.h"

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

/////////////////////////////////////////////////////////////////////////////
// Cbrush dialog


Cbrush::Cbrush(CWnd* pParent /*=NULL*/)
	: CDialog(Cbrush::IDD, pParent)
{
	//{{AFX_DATA_INIT(Cbrush)
	m_solid=0;
	m_style=_T("");
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void Cbrush::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(Cbrush)
	DDX_Control(pDX,IDC_COMBO1,m_c_style);
	DDX_Radio(pDX,IDC_SOLID,m_solid);
	DDX_CBString(pDX,IDC_COMBO1,m_style);
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(Cbrush, CDialog)
	//{{AFX_MSG_MAP(Cbrush)
	ON_BN_CLICKED(IDC_SOLID, OnSolid)
	ON_BN_CLICKED(IDC_HATCH, OnHatch)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// Cbrush message handlers

void Cbrush::OnSolid() 
{
	// TODO: Add your control notification handler code here
	m_c_style.SetCurSel(-1);
}

void Cbrush::OnHatch() 
{
	// TODO: Add your control notification handler code here
	m_c_style.SetCurSel(0);
}

⌨️ 快捷键说明

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