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

  1. /**********************************************************
  2.  
  3. DialogThread.cpp 
  4. Copyright TransEra Corporation 1999.
  5.  
  6. ***********************************************************/
  7. #include "stdafx.h"
  8. #include "HTBgraph.h"
  9. #include "DialogThread.h"
  10. #include "GraphDlg.h"
  11.  
  12. #ifdef _DEBUG
  13. #define new DEBUG_NEW
  14. #undef THIS_FILE
  15. static char THIS_FILE[] = __FILE__;
  16.  
  17. #endif
  18.  
  19. IMPLEMENT_DYNCREATE(DialogThread, CWinThread)
  20.  
  21. DialogThread::DialogThread() 
  22. {    
  23. }
  24.  
  25. DialogThread::~DialogThread() 
  26. {
  27. }
  28.  
  29.  
  30. /////////////////////////////////////////////////////////////////////////////
  31. /*
  32.     Function:        DialogThread::InitInstance
  33.  
  34.     Description:    Displays Dialog Box.    
  35.  
  36.     Return type:    BOOL 
  37.  
  38.     Notes:            Calls GraphDlg class and does a modal on that class
  39.                     thus bringing that defined dialog box into view and 
  40.                     use.        
  41. */
  42. BOOL DialogThread::InitInstance() 
  43. {        
  44.     GraphDlg Dlg;                            // dialog box
  45.     g_GraphVar = &Dlg;                        // save pointer to new dialog box for use outside this thread    
  46.     Dlg.DoModal();                            // put in on the screen
  47.     return TRUE;
  48. }
  49.  
  50.  
  51.  
  52. /////////////////////////////////////////////////////////////////////////////
  53. /*
  54.     Function:        DialogThread::ExitInstance
  55.  
  56.     Description:    Returns Thread for shut down
  57.  
  58.     Return type:    int 
  59.  
  60.     Notes:            Returns Thread for shut down
  61.         
  62. */
  63. int DialogThread::ExitInstance() 
  64. {    
  65.     return CWinThread::ExitInstance();
  66. }
  67.  
  68. BEGIN_MESSAGE_MAP(DialogThread, CWinThread)
  69.     //{{AFX_MSG_MAP(DialogThread)
  70.         // NOTE - the ClassWizard will add and remove mapping macros here.
  71.     //}}AFX_MSG_MAP
  72. END_MESSAGE_MAP()
  73.  
  74.  
  75.