mytextbutton.h

来自「一个用很好用的管理系统!希望对大家有帮助!」· C头文件 代码 · 共 48 行

H
48
字号
#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 + =
减小字号Ctrl + -
显示快捷键?