home *** CD-ROM | disk | FTP | other *** search
- // DialogThread.cpp : implementation file
- // High Tech BASIC, Copyright (C) TransEra Corp 1999, All Rights Reserved.
-
- #include "stdafx.h"
- #include "LineChartDlg.h"
- #include "DialogThread.h"
- #include "export.h"
- #include "htblinechart.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
-
- #endif
-
- extern LineChartDlg* g_pLCDlg; // global pointer to button dialog used for setting focus and closing
- /////////////////////////////////////////////////////////////////////////////
- // DialogThread
-
- IMPLEMENT_DYNCREATE(DialogThread, CWinThread)
-
- DialogThread::DialogThread()
- {
- }
-
- DialogThread::~DialogThread()
- {
- }
-
- BOOL DialogThread::InitInstance()
- { HANDLE hReset,hShutdown,hEvent;
-
- LineChartDlg LCDlg;
- g_pLCDlg = &LCDlg;
-
- LCDlg.SetBounds(g_LowerBound,g_UpperBound);
- LCDlg.SetTimerValue(g_Timer);
-
- GetBasicEvents(&hReset,&hShutdown);
-
-
- Registerthread(&hEvent);
-
- LCDlg.DoModal();
-
- SetEvent(hEvent);
- return TRUE;
- }
-
- int DialogThread::ExitInstance()
- {
- // TODO: perform any per-thread cleanup here
- return CWinThread::ExitInstance();
- }
-
- BEGIN_MESSAGE_MAP(DialogThread, CWinThread)
- //{{AFX_MSG_MAP(DialogThread)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // DialogThread message handlers
-
-
-