www.gusucode.com > VC++远程视频监控系统源代码-源码程序 > VC++远程视频监控系统源代码-源码程序/code/接收端/接收端/RevMDIChildWnd.cpp
// RevMDIChildWnd.cpp : implementation file // #include "stdafx.h" #include "mtmdi.h" #include "RevMDIChildWnd.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CRevMDIChildWnd IMPLEMENT_DYNCREATE(CRevMDIChildWnd, CMDIChildWnd) CRevMDIChildWnd::CRevMDIChildWnd() { } CRevMDIChildWnd::~CRevMDIChildWnd() { } BEGIN_MESSAGE_MAP(CRevMDIChildWnd, CMDIChildWnd) //{{AFX_MSG_MAP(CRevMDIChildWnd) // NOTE - the ClassWizard will add and remove mapping macros here. //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CRevMDIChildWnd message handlers BOOL CRevMDIChildWnd::Create(LPCTSTR szTitle, const RECT &rect) { if (menu.m_hMenu == NULL) menu.LoadMenu(IDR_CHILDFRAME); m_hMenuShared = menu.m_hMenu; if (!CMDIChildWnd::Create(NULL, szTitle, WS_CHILD | WS_VISIBLE | WS_OVERLAPPEDWINDOW, rect)) return FALSE; CRevPlayThread* pRevPlayThread = new CRevPlayThread(m_hWnd); pRevPlayThread->CreateThread(); return TRUE; }