mytextbutton.h

来自「法:1:将类文件加入到你的项目中 2:在你的对话框中加入一个按纽(but」· C头文件 代码 · 共 24 行

H
24
字号
/////////////////////////////////////////////////////////////////////////////
// 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() : m_bUse3D(true) {}
     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()
};
/////////////////////////////////////////////////////////////////////////////
#endif

⌨️ 快捷键说明

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