SplashThread.cpp 968 B

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