UIThread.cpp
资源名称:MFC_Multy.rar [点击查看]
上传用户:shenmao
上传日期:2014-12-06
资源大小:238k
文件大小:1k
源码类别:
进程与线程
开发平台:
Visual C++
- // UIThread.cpp : implementation file
- //
- #include "stdafx.h"
- #include "Multy3.h"
- #include "UIThread.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CUIThread
- IMPLEMENT_DYNCREATE(CUIThread, CWinThread)
- CUIThread::CUIThread()
- {
- }
- CUIThread::~CUIThread()
- {
- }
- BOOL CUIThread::InitInstance()
- {
- CFrameWnd* wnd=new CFrameWnd;
- wnd->Create(NULL,"UI Thread Window");
- wnd->ShowWindow(SW_SHOW);
- wnd->UpdateWindow();
- m_pMainWnd=wnd;
- return TRUE;
- }
- int CUIThread::ExitInstance()
- {
- // TODO: perform any per-thread cleanup here
- return CWinThread::ExitInstance();
- }
- BEGIN_MESSAGE_MAP(CUIThread, CWinThread)
- //{{AFX_MSG_MAP(CUIThread)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CUIThread message handlers