home *** CD-ROM | disk | FTP | other *** search
- /**********************************************
- HTBclock.dll
- TransEra Corporation 1999.
- This is the source for the HTBClock.dll.
-
- ***********************************************/
-
- #include "stdafx.h"
- #include "HTBclock.h"
- #include "DialogThread.h"
- #include "lockDlg.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
-
- #endif
-
-
- extern ClockDlg * g_ClockVar; // used to hold pointer to dialog box outside of new thread
-
- IMPLEMENT_DYNCREATE(DialogThread, CWinThread)
-
- DialogThread::DialogThread()
- {
- }
-
- DialogThread::~DialogThread()
- {
- }
-
- BOOL DialogThread::InitInstance()
- {
- ClockDlg Dlg; // dialog box
- g_ClockVar = &Dlg; // save pointer to new dialog box for use outside this thread
- Dlg.DoModal(); // put in on the screen
- return TRUE;
- }
-
- int DialogThread::ExitInstance()
- {
- 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()
-
-
-