📄 buttoncolor.h
字号:
/*
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -