?? mytextbutton.h
字號:
/////////////////////////////////////////////////////////////////////////////
// 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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -