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

📄 mytextbtn.h

📁 VCsuishu fudai de yixie chengxuyuanma
💻 H
字号:
#if !defined(AFX_MYTEXTBTN_H__938B85D2_2FF0_4762_A6B1_CA9D64ADFFBA__INCLUDED_)
#define AFX_MYTEXTBTN_H__938B85D2_2FF0_4762_A6B1_CA9D64ADFFBA__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CMyTextBtn window

class CMyTextBtn : public CWnd
{
// Construction
public:
	CMyTextBtn();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyTextBtn)
	public:
	virtual BOOL Create(CWnd* pParentWnd, UINT ctlID, UINT nID = NULL);
	protected:
	//}}AFX_VIRTUAL

// Implementation
public:
	void SetTextClr(COLORREF textColor);
	void SetTextString(CString textStr);
	void SetTextFont(LOGFONT* pTextLogFont);
	virtual ~CMyTextBtn();

	// Generated message map functions
protected:
	CString m_textString;
	CFont m_textFont;
	COLORREF m_textColor;
	CRect m_clientRect;
	UINT m_ctlID;
	//{{AFX_MSG(CMyTextBtn)
	afx_msg void OnPaint();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_MYTEXTBTN_H__938B85D2_2FF0_4762_A6B1_CA9D64ADFFBA__INCLUDED_)

⌨️ 快捷键说明

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