home *** CD-ROM | disk | FTP | other *** search
/ HTBasic 9.3 / HTBasic 9.3.iso / 83win / data1.cab / DLL_Toolkit / Source / HTBClock / DialogThread.cpp next >
Encoding:
C/C++ Source or Header  |  2001-03-02  |  1.1 KB  |  53 lines

  1. /**********************************************
  2. HTBclock.dll
  3. TransEra Corporation 1999.
  4. This is the source for the HTBClock.dll.
  5.  
  6. ***********************************************/
  7.  
  8. #include "stdafx.h"
  9. #include "HTBclock.h"
  10. #include "DialogThread.h"
  11. #include "lockDlg.h"
  12.  
  13. #ifdef _DEBUG
  14. #define new DEBUG_NEW
  15. #undef THIS_FILE
  16. static char THIS_FILE[] = __FILE__;
  17.  
  18. #endif
  19.  
  20.  
  21. extern ClockDlg * g_ClockVar;                        // used to hold pointer to dialog box outside of new thread
  22.  
  23. IMPLEMENT_DYNCREATE(DialogThread, CWinThread)
  24.  
  25. DialogThread::DialogThread() 
  26. {    
  27. }
  28.  
  29. DialogThread::~DialogThread() 
  30. {
  31. }
  32.  
  33. BOOL DialogThread::InitInstance() 
  34. {        
  35.     ClockDlg Dlg;                                    // dialog box
  36.     g_ClockVar = &Dlg;                                    // save pointer to new dialog box for use outside this thread    
  37.     Dlg.DoModal();                                        // put in on the screen
  38.     return TRUE;
  39. }
  40.  
  41. int DialogThread::ExitInstance() 
  42. {    
  43.     return CWinThread::ExitInstance();
  44. }
  45.  
  46. BEGIN_MESSAGE_MAP(DialogThread, CWinThread)
  47.     //{{AFX_MSG_MAP(DialogThread)
  48.         // NOTE - the ClassWizard will add and remove mapping macros here.
  49.     //}}AFX_MSG_MAP
  50. END_MESSAGE_MAP()
  51.  
  52.  
  53.