www.pudn.com > AVIrep.rar > XAviPlay.h
// XAviPlay.h : Declaration of the CXAviPlay #ifndef __XAVIPLAY_H_ #define __XAVIPLAY_H_ const double CONTROLHEIGHT = 12.0; const long MARGIN = 4; const long lMaxRange = 10000; #include// for math proc's #include #include // Multimedia Timer for timeGetTime() #include "resource.h" // main symbols ///////////////////////////////////////////////////////////////////////////// // CXAviPlay class CXAviPlay : public CDialogImpl { public: long m_ResID; // ID of AVI-Resource HINSTANCE m_hInstance; // Instance of calling process HWND m_hwndAnim; // hWnd: Animationwindow HWND m_hwndProgress; // hWnd: ProgressBar long m_Repeat; // Number repetitions. -1 ... infinite long m_Width; // if you want to change the size of the Animation- long m_Height; // window you must specify both values. the AVI will be centered. long m_nRows; // number of TextRows for additional text. long m_halfLife; // halflife for progressbar. DWORD m_StartTime; // starting time for progressbar. long m_Progress; // display the progressbar? char m_sText[256]; // additional text. HWND m_hwndParent; // parent window for centering the dialog box. void ResetProgressBar();// reset the progressbar to zero. CXAviPlay(HINSTANCE hInstance, long ResID, long Repeat, long Width, long Height, long lRows, BOOL Progress, long HalfLife, HWND hWndParent); ~CXAviPlay(); enum { IDD = IDD_XAVIPLAY }; BEGIN_MSG_MAP(CXAviPlay) MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) COMMAND_ID_HANDLER(IDOK, OnOK) COMMAND_ID_HANDLER(IDCANCEL, OnCancel) END_MSG_MAP() LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); LRESULT OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); }; #endif //__XAVIPLAY_H_