home *** CD-ROM | disk | FTP | other *** search
/ HTBasic 9.3 / HTBasic 9.3.iso / 93win / data1.cab / DLL_Toolkit / Source / HTBLineChart / DialogThread.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2005-03-02  |  1.4 KB  |  67 lines

  1. // DialogThread.cpp : implementation file
  2. //    High Tech BASIC, Copyright (C) TransEra Corp 1999, All Rights Reserved.
  3.  
  4. #include "stdafx.h"
  5. #include "LineChartDlg.h"
  6. #include "DialogThread.h"
  7. #include "export.h"
  8. #include "htblinechart.h"
  9.  
  10. #ifdef _DEBUG
  11. #define new DEBUG_NEW
  12. #undef THIS_FILE
  13. static char THIS_FILE[] = __FILE__;
  14.  
  15. #endif
  16.  
  17. extern LineChartDlg* g_pLCDlg;            // global pointer to button dialog used for setting focus and closing
  18. /////////////////////////////////////////////////////////////////////////////
  19. // DialogThread
  20.  
  21. IMPLEMENT_DYNCREATE(DialogThread, CWinThread)
  22.  
  23. DialogThread::DialogThread()
  24. {    
  25. }
  26.  
  27. DialogThread::~DialogThread()
  28. {
  29. }
  30.  
  31. BOOL DialogThread::InitInstance()
  32. {    HANDLE hReset,hShutdown,hEvent;
  33.  
  34.     LineChartDlg LCDlg;
  35.     g_pLCDlg = &LCDlg;
  36.  
  37.     LCDlg.SetBounds(g_LowerBound,g_UpperBound);
  38.     LCDlg.SetTimerValue(g_Timer);
  39.  
  40.     GetBasicEvents(&hReset,&hShutdown);
  41.     
  42.  
  43.     Registerthread(&hEvent);
  44.  
  45.     LCDlg.DoModal();
  46.  
  47.     SetEvent(hEvent);
  48.     return TRUE;
  49. }
  50.  
  51. int DialogThread::ExitInstance()
  52. {
  53.     // TODO:  perform any per-thread cleanup here
  54.     return CWinThread::ExitInstance();
  55. }
  56.  
  57. BEGIN_MESSAGE_MAP(DialogThread, CWinThread)
  58.     //{{AFX_MSG_MAP(DialogThread)
  59.         // NOTE - the ClassWizard will add and remove mapping macros here.
  60.     //}}AFX_MSG_MAP
  61. END_MESSAGE_MAP()
  62.  
  63. /////////////////////////////////////////////////////////////////////////////
  64. // DialogThread message handlers
  65.  
  66.  
  67.