home *** CD-ROM | disk | FTP | other *** search
- // vctest.cpp : Defines the class behaviors for the application.
- //
-
- #include "stdafx.h"
- #include "vctest.h"
-
- #include "maindlg.h"
-
- #ifdef _DEBUG
- #undef THIS_FILE
- static char BASED_CODE THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CVctestApp
-
- BEGIN_MESSAGE_MAP(CVctestApp, CWinApp)
- //{{AFX_MSG_MAP(CVctestApp)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_MSG_MAP
- // Standard file based document commands
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // CVctestApp construction
-
- CVctestApp::CVctestApp()
- {
- // TODO: add construction code here,
- // Place all significant initialization in InitInstance
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // The one and only CVctestApp object
-
- CVctestApp NEAR theApp;
-
- /////////////////////////////////////////////////////////////////////////////
- // CVctestApp initialization
-
- BOOL CVctestApp::InitInstance()
- {
- m_pszProfileName = "VCTEST.INI"; // Profile API goes to AFX.INI
- // SetDialogBkColor();
- EnableVBX(); // Initialize VBX support
-
- CMainDlg dlg;
- dlg.DoModal();
-
- ::PostQuitMessage(0); // Exit application
- return FALSE; // FALSE means CWinApp::Run is not called
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // VB-Event registration
- // (calls to AfxRegisterVBEvent will be placed here by ClassWizard)
-
- //{{AFX_VBX_REGISTER_MAP()
- UINT NEAR VBN_DBLCLICK = AfxRegisterVBEvent("DBLCLICK");
- UINT NEAR VBN_CHANGED = AfxRegisterVBEvent("CHANGED");
- //}}AFX_VBX_REGISTER_MAP
-
- /////////////////////////////////////////////////////////////////////////////
- // CVctestApp commands
-