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

📄 lineparameter.cpp

📁 This is my assignment for my tutor s Class. and many problems exist,so you should comprhend it and i
💻 CPP
字号:
// LineParameter.cpp : implementation file
//

#include "stdafx.h"
#include "FilmDesign.h"
#include "LineParameter.h"

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

/////////////////////////////////////////////////////////////////////////////
// CLineParameter dialog


CLineParameter::CLineParameter(CWnd* pParent /*=NULL*/)
	: CDialog(CLineParameter::IDD, pParent)
{
	//{{AFX_DATA_INIT(CLineParameter)
	m_Style = PS_SOLID;
	m_Width = 2;
	m_Title = _T("");
	//}}AFX_DATA_INIT
	m_Color=RGB(0,20,30);
}


void CLineParameter::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CLineParameter)
	DDX_Text(pDX, IDC_EDIT_LINE_STYLE, m_Style);
	DDX_Text(pDX, IDC_EDIT_LINE_WIDTH, m_Width);
	DDV_MinMaxInt(pDX, m_Width, 0, 10);
	DDX_Text(pDX, IDC_EDIT_LINE_TITLE, m_Title);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CLineParameter, CDialog)
	//{{AFX_MSG_MAP(CLineParameter)
	ON_BN_CLICKED(IDC_B_COLORSET, OnBColorset)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CLineParameter message handlers

void CLineParameter::OnBColorset() 
{
	// TODO: Add your control notification handler code here
	CColorDialog dlg;
	if(dlg.DoModal()==IDOK)
	{
		this->m_Color=dlg.GetColor();
	}
	
	
}

⌨️ 快捷键说明

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