custombutton.h
来自「Visual C++ 的学习资料一」· C头文件 代码 · 共 57 行
H
57 行
#if !defined(AFX_CUSTOMBUTTON_H__57C57ED6_A79E_4EBB_BD15_2F9E26B0127E__INCLUDED_)
#define AFX_CUSTOMBUTTON_H__57C57ED6_A79E_4EBB_BD15_2F9E26B0127E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CustomButton.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CCustomButton window
class CCustomButton : public CButton
{
// Construction
public:
CCustomButton();
UINT m_bitmapID;
BOOL isPressed;
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCustomButton)
public:
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
//}}AFX_VIRTUAL
// Implementation
public:
void LoadButtonResource(UINT ID,CWnd* pParent,UINT BID);
virtual ~CCustomButton();
// Generated message map functions
protected:
//{{AFX_MSG(CCustomButton)
afx_msg void OnMButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CUSTOMBUTTON_H__57C57ED6_A79E_4EBB_BD15_2F9E26B0127E__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?