UIThread.cpp
Upload User: shenmao
Upload Date: 2014-12-06
Package Size: 238k
Code Size: 1k
Category:

Process-Thread

Development Platform:

Visual C++

  1. // UIThread.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "Multy6.h"
  5. #include "UIThread.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CUIThread
  13. IMPLEMENT_DYNCREATE(CUIThread, CWinThread)
  14. CUIThread::CUIThread()
  15. {
  16. }
  17. CUIThread::~CUIThread()
  18. {
  19. }
  20. BOOL CUIThread::InitInstance()
  21. {
  22.  m_dlg.Create(IDD_UITHREADDLG);
  23.  m_dlg.ShowWindow(SW_SHOW);
  24.  m_pMainWnd=&m_dlg;
  25.  return TRUE;
  26. }
  27. int CUIThread::ExitInstance()
  28. {
  29.  m_dlg.DestroyWindow();
  30.  return CWinThread::ExitInstance();
  31. }
  32. BEGIN_MESSAGE_MAP(CUIThread, CWinThread)
  33. //{{AFX_MSG_MAP(CUIThread)
  34. // NOTE - the ClassWizard will add and remove mapping macros here.
  35. //}}AFX_MSG_MAP
  36. END_MESSAGE_MAP()
  37. /////////////////////////////////////////////////////////////////////////////
  38. // CUIThread message handlers