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

📄 controldrawdlg.h

📁 控件的使用源代码。打开后可实现控件的应用 。
💻 H
字号:
// ControlDrawDlg.h : header file
//

#if !defined(AFX_CONTROLDRAWDLG_H__BA30A531_33DE_4BB0_9114_83185587A105__INCLUDED_)
#define AFX_CONTROLDRAWDLG_H__BA30A531_33DE_4BB0_9114_83185587A105__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CControlDrawDlg dialog

class CControlDrawDlg : public CDialog
{
// Construction
public:
	void Draw();
	CControlDrawDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CControlDrawDlg)
	enum { IDD = IDD_CONTROLDRAW_DIALOG };
	CStatic	m_DrawCanvas;
	CSliderCtrl	m_sliderG;
	CSliderCtrl	m_sliderR;
	CSliderCtrl	m_sliderB;
	CListBox	m_listStyle;
	CComboBox	m_comboMethod;
	CComboBox	m_comboLineStyle;
	int		m_thickness;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CControlDrawDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

	//定义相关的成员变量
	int m_RColor;
	int m_GColor;
	int m_BColor;
	int m_LineStyle;		//线形
	int m_Method;			//填充方法
	int m_Style;			//填充样式
	int m_Shape;			//绘图形状

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CControlDrawDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnSelchangeListstyle();
	afx_msg void OnSelchangeCombomethod();
	afx_msg void OnSelchangeCombolinestyle();
	afx_msg void OnLine();
	afx_msg void OnRectangle();
	afx_msg void OnCircle();
	afx_msg void OnThickness();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CONTROLDRAWDLG_H__BA30A531_33DE_4BB0_9114_83185587A105__INCLUDED_)

⌨️ 快捷键说明

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