#if !defined(AFX_REVPLAYMDICHILDWND_H__32C9A3E1_3AC9_11D4_883E_0000210A0111__INCLUDED_)
#define AFX_REVPLAYMDICHILDWND_H__32C9A3E1_3AC9_11D4_883E_0000210A0111__INCLUDED_
// Added by ClassView
#include "WaitDlg.h" // Added by ClassView
#include "winsock2.h"
#include "Mmsystem.h"
//#include "streams.h"
#include "mpegdef.h"
#include "mpgutil.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// RevPlayMDIChildWnd.h : header file
//
class CMemStream;
class CMemReader;
#define MPEGWIDTH 352
#define MPEGHEIGHT 288
#define HELPER_RELEASE(x) {if(x) x -> Release(); x = NULL;} // 控件释放
#define CHECK_ERROR(x, idFailMsg) if (FAILED(hr = (x))) { if (idFailMsg) MessageBox(idFailMsg); return -1;}
/
// CRevPlayMDIChildWnd frame
struct COnCmdMsg
{
int m_nID;
int m_nCode;
void* m_pExtra;
AFX_CMDHANDLERINFO* m_pHandlerInfo;
};
#define WM_USER_ONCMDMSG (WM_USER + 0x1000)
#define WM_USER_PREPARE_TO_CLOSE (WM_USER + 0x1001)
class CRevPlayMDIChildWnd : public CMDIChildWnd
{
DECLARE_DYNCREATE(CRevPlayMDIChildWnd)
protected:
// protected constructor used by dynamic creation
static CMenu NEAR menu;
// Attributes
public:
// Operations
public:
CRevPlayMDIChildWnd();
BOOL Create(LPCTSTR szTitle,const RECT&rect,CMDIFrameWnd* parent);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRevPlayMDIChildWnd)
public:
virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
virtual BOOL DestroyWindow();
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CRevPlayMDIChildWnd();
// Generated message map functions
//{{AFX_MSG(CRevPlayMDIChildWnd)
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
afx_msg LRESULT OnPrepareToClose(WPARAM wParam=0, LPARAM lParam=0);
DECLARE_MESSAGE_MAP()
};