AVIButton.h
上传用户:szcysw
上传日期:2013-03-11
资源大小:6752k
文件大小:1k
- #if !defined(AFX_AVIBUTTON_H__1D37DCDD_3DCE_4E73_BBA1_CB1DD7A499E2__INCLUDED_)
- #define AFX_AVIBUTTON_H__1D37DCDD_3DCE_4E73_BBA1_CB1DD7A499E2__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // AVIButton.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CAVIButton window
- class CAVIButton : public CButton
- {
- // Construction
- public:
- CAVIButton();
-
- // Attributes
- public:
- //AVI播放控件
- CAnimateCtrl m_AnimateCtrl;
- //AVI文件的ID值
- DWORD aviResource;
- // Operations
- public:
- // void DrawButton(CDC* pDC, UINT nState, CRect rect);
- public:
- BOOL Create( LPCTSTR lpszCaption, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID );
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CAVIButton)
- public:
- virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
- //}}AFX_VIRTUAL
-
- // Implementation
- public:
- void SetAVIResource(DWORD resource);
- virtual ~CAVIButton();
-
-
- // Generated message map functions
- protected:
- //{{AFX_MSG(CAVIButton)
- afx_msg void OnClicked();
- //}}AFX_MSG
-
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_AVIBUTTON_H__1D37DCDD_3DCE_4E73_BBA1_CB1DD7A499E2__INCLUDED_)