transbutton1.h

来自「透明按钮」· C头文件 代码 · 共 56 行

H
56
字号
#if !defined(AFX_TRANSBUTTON1_H__1C911BF3_79B1_4551_B532_4872D1FA8AD6__INCLUDED_)
#define AFX_TRANSBUTTON1_H__1C911BF3_79B1_4551_B532_4872D1FA8AD6__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CTransbutton window

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

// Attributes
public:
	HDC m_hHdc;
// Operations
public:

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

// Implementation
public:
	COLORREF m_TextColorDark, m_TextColorLight;
	COLORREF SetTextColor(COLORREF DarkColor, COLORREF LightColor);
	void SetTransparent();
	virtual ~CTransbutton();

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

	DECLARE_MESSAGE_MAP()
private:
	void PaintBG(CDC *pDC);
};

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

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

#endif // !defined(AFX_TRANSBUTTON1_H__1C911BF3_79B1_4551_B532_4872D1FA8AD6__INCLUDED_)

⌨️ 快捷键说明

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