RevMDIChildWnd.cpp
上传用户:tuheem
上传日期:2007-05-01
资源大小:21889k
文件大小:1k
- // 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;
- }