RevMDIChildWnd.cpp
资源名称:VC++视频传输.rar [点击查看]
上传用户:hxb_1234
上传日期:2010-03-30
资源大小:8328k
文件大小:1k
源码类别:
VC书籍
开发平台:
Visual C++
- // 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;
- }