home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_code1 / bar_vbx / vctest.cpp < prev    next >
C/C++ Source or Header  |  1993-11-14  |  2KB  |  66 lines

  1. // vctest.cpp : Defines the class behaviors for the application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "vctest.h"
  6.  
  7. #include "maindlg.h"
  8.  
  9. #ifdef _DEBUG
  10. #undef THIS_FILE
  11. static char BASED_CODE THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CVctestApp
  16.  
  17. BEGIN_MESSAGE_MAP(CVctestApp, CWinApp)
  18.    //{{AFX_MSG_MAP(CVctestApp)
  19.       // NOTE - the ClassWizard will add and remove mapping macros here.
  20.       //    DO NOT EDIT what you see in these blocks of generated code !
  21.    //}}AFX_MSG_MAP
  22.    // Standard file based document commands
  23. END_MESSAGE_MAP()
  24.  
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CVctestApp construction
  27.  
  28. CVctestApp::CVctestApp()
  29. {
  30.    // TODO: add construction code here,
  31.    // Place all significant initialization in InitInstance
  32. }
  33.  
  34. /////////////////////////////////////////////////////////////////////////////
  35. // The one and only CVctestApp object
  36.  
  37. CVctestApp NEAR theApp;
  38.  
  39. /////////////////////////////////////////////////////////////////////////////
  40. // CVctestApp initialization
  41.  
  42. BOOL CVctestApp::InitInstance()
  43. {
  44.    m_pszProfileName = "VCTEST.INI";       // Profile API goes to AFX.INI
  45. //   SetDialogBkColor();
  46.    EnableVBX();               // Initialize VBX support
  47.  
  48.    CMainDlg  dlg;
  49.    dlg.DoModal();
  50.  
  51.    ::PostQuitMessage(0);       // Exit application
  52.    return FALSE;               // FALSE means CWinApp::Run is not called
  53. }
  54.  
  55. /////////////////////////////////////////////////////////////////////////////
  56. // VB-Event registration
  57. // (calls to AfxRegisterVBEvent will be placed here by ClassWizard)
  58.  
  59. //{{AFX_VBX_REGISTER_MAP()
  60.    UINT NEAR VBN_DBLCLICK = AfxRegisterVBEvent("DBLCLICK");
  61.     UINT NEAR VBN_CHANGED = AfxRegisterVBEvent("CHANGED");
  62. //}}AFX_VBX_REGISTER_MAP
  63.  
  64. /////////////////////////////////////////////////////////////////////////////
  65. // CVctestApp commands
  66.