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

📄 drawsetdlg.cpp

📁 聊天的
💻 CPP
字号:
// DrawSetDlg.cpp : implementation file
//

#include "stdafx.h"
#include "Meeting.h"
#include "DrawSetDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDrawSetDlg dialog


CDrawSetDlg::CDrawSetDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CDrawSetDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDrawSetDlg)
	m_bFill = FALSE;
	m_nWidth = 1;
	//}}AFX_DATA_INIT
}


void CDrawSetDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDrawSetDlg)
	DDX_Check(pDX, IDC_CHECK1, m_bFill);
	DDX_Text(pDX, IDC_EDIT1, m_nWidth);
	DDV_MinMaxUInt(pDX, m_nWidth, 1, 36);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDrawSetDlg, CDialog)
	//{{AFX_MSG_MAP(CDrawSetDlg)
	ON_BN_CLICKED(IDC_BUTTON_FCOLOR, OnButtonFcolor)
	ON_BN_CLICKED(IDC_BUTTON_BCOLOR, OnButtonBcolor)
	ON_WM_CTLCOLOR()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDrawSetDlg message handlers

void CDrawSetDlg::OnButtonFcolor() 
{
	CColorDialog dlgColor;
	if(dlgColor.DoModal()==IDOK)
		m_colorFront=dlgColor.GetColor();
	
}

void CDrawSetDlg::OnButtonBcolor() 
{
	CColorDialog dlgColor;
	if(dlgColor.DoModal()==IDOK)
		m_colorBack=dlgColor.GetColor();
	
}



BOOL CDrawSetDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
//	CButton* pButt=(CButton*)GetDlgItem(IDC_BUTTON_FCOLOR);
//	CDC* pDC=pButt->GetDC();
//	pButt->Invalidate();
//	pButt->UpdateWindow();
//	pDC->SetBkColor(RGB(255,0,0));
//	pDC->Rectangle(0,0,10,10);

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

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