C++远程监控系统接收端- RevPlayMDIChildWnd.H

#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()
};

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

D20187

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值