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

📄 mytextbutton.h

📁 这个还可以
💻 H
字号:
#if !defined(AFX_MYTEXTBUTTON_H__36EB4B2F_9D0A_11D3_95AF_444553540000__INCLUDED_)
#define AFX_MYTEXTBUTTON_H__36EB4B2F_9D0A_11D3_95AF_444553540000__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
///////////////////////////////////////////////////////////////////////////
//
// MyTextButton.h interface for CMyTextButton
// (c) Roger Onslow, 1997
// use freely and enjoy
///////////////////////////////////////////////////////////////////////////
//

#ifndef _CMyTextButton_
#define _CMyTextButton_

///////////////////////////////////////////////////////////////////////////
//
// CMyTextButton control

class CMyTextButton : public CButton
{
     bool m_bUse3D;

public:     
	CMyTextButton() ;
	CString m_strFontStyle;
	void SetFontStyle(CString);
     void Use3D(bool bUse3D=true) { m_bUse3D = bUse3D; }
protected:
     void Draw(CDC* pDC, const CRect& rect, UINT state);
     //{{AFX_MSG(CMyTextButton)
     afx_msg void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
     afx_msg BOOL OnEraseBkgnd(CDC* pDC);     //}}AFX_MSG
     //{{AFX_VIRTUAL(CMyTextButton)     
	 virtual void PreSubclassWindow();
     //}}AFX_VIRTUAL     
	 DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_MYTEXTBUTTON_H__36EB4B2F_9D0A_11D3_95AF_444553540000__INCLUDED_)
#endif

⌨️ 快捷键说明

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