buttoncolor.h

来自「在程序中添加一个颜色拾取的按钮」· C头文件 代码 · 共 64 行

H
64
字号
/* 
 *  Copyright 2007, cgsir.com, Inc.
 *  作者:李英江
 *  日期:2007.12
 *  修改:
 *  说明:颜色拾取
 */

#if !defined(AFX_BUTTONCOLOR_H__4D802826_DAB3_48B7_9259_862799BD5040__INCLUDED_)
#define AFX_BUTTONCOLOR_H__4D802826_DAB3_48B7_9259_862799BD5040__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ButtonColor.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CButtonColor window

class CButtonColor : public CButton
{
// Construction
public:
	CButtonColor();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CButtonColor)
	public:
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
	//}}AFX_VIRTUAL

// Implementation
public:
	BOOL SetBGColor(COLORREF bgColor);
	BOOL Attach(const UINT nID, CWnd* pParent, COLORREF bgColor);
	COLORREF GetBGColor();
	virtual ~CButtonColor();

	// Generated message map functions
protected:
	//{{AFX_MSG(CButtonColor)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
private:
	COLORREF m_bgColor;
};

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_BUTTONCOLOR_H__4D802826_DAB3_48B7_9259_862799BD5040__INCLUDED_)

⌨️ 快捷键说明

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