📄 flybutton.h
字号:
#if !defined(AFX_FlyButton_H__F42413E1_83FC_11D5_9347_00001CDC0411__INCLUDED_)
#define AFX_FlyButton_H__F42413E1_83FC_11D5_9347_00001CDC0411__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// FlyButton.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CFlyButton window
class CFlyButton : public CButton
{
// Construction
public:
CFlyButton();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFlyButton)
public:
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
protected:
virtual void PreSubclassWindow();
//}}AFX_VIRTUAL
// Implementation
public:
void SetBitmap(UINT nID, COLORREF crf = RGB(255,255,255));
virtual ~CFlyButton();
// Generated message map functions
protected:
//{{AFX_MSG(CFlyButton)
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnEnable(BOOL bEnable);
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void DitherBlt (HDC hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, HBITMAP hbm, int nXSrc, int nYSrc);
void DrawText(CDC* pDC, LPRECT lpRect);
void DrawFrame(CDC* pDC, LPRECT lpRect);
void DrawBitmap(CDC* pDC,LPRECT lpRect);
CBitmap m_Bitmap;
COLORREF m_bkColor;
BOOL m_bHover;
BOOL m_bDown;
BOOL m_bDowned;
BOOL m_bDrawed;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FlyButton_H__6B949BA3_6DC9_4B8B_9572_3E59F5726E34__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -