anibutton.h
来自「C++编程实践与技巧一书各章节的源码」· C头文件 代码 · 共 42 行
H
42 行
#if !defined(AFX_ANIBUTTON_H__E9AC4132_284A_11D1_931F_00A0247B4CE3__INCLUDED_)
#define AFX_ANIBUTTON_H__E9AC4132_284A_11D1_931F_00A0247B4CE3__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// AniButton.h : header file
// CAniButton window
class CAniButton : public CButton
{
// Construction
public:
CAniButton();
// Attributes
public:
BOOL Create( LPCTSTR lpszCaption, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID );
public:
UINT m_nAniID;
public:
void LoadAVI(UINT nAniID);
virtual ~CAniButton();
// Generated message map functions
protected:
CAnimateCtrl m_AnimateCtrl;//动画控件
BOOL m_bPlaying;//是否播放标志
//{{AFX_MSG(CAniButton)
//鼠标移动时的事件响应
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
//}}AFX_MSG
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
//绘制控件
void DrawButton(CDC* pDC, UINT nState, CRect rect);
DECLARE_MESSAGE_MAP()
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?