home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 6 / mastvb6.iso / leadtools / ocx32.lt / MMAPP.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-16  |  1.0 KB  |  48 lines

  1. // MMApp.cpp : Defines the class behaviors for the application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "MMApp.h"
  6. #include "MMDlg.h"
  7.  
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CMMApp
  10.  
  11. BEGIN_MESSAGE_MAP(CMMApp, CWinApp)
  12.     //{{AFX_MSG_MAP(CMMApp)
  13.     //}}AFX_MSG
  14.     ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  15. END_MESSAGE_MAP()
  16.  
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CMMApp construction
  19.  
  20. CMMApp::CMMApp()
  21. {
  22. }
  23.  
  24. /////////////////////////////////////////////////////////////////////////////
  25. // The one and only CMMApp object
  26.  
  27. CMMApp theApp;
  28.  
  29. /////////////////////////////////////////////////////////////////////////////
  30. // CMMApp initialization
  31.  
  32. BOOL CMMApp::InitInstance()
  33. {
  34.     AfxEnableControlContainer();
  35.  
  36. #ifdef _AFXDLL
  37.     Enable3dControls();            // Call this when using MFC in a shared DLL
  38. #else
  39.     Enable3dControlsStatic();    // Call this when linking to MFC statically
  40. #endif
  41.  
  42.     CMMDlg dlg;
  43.     m_pMainWnd = &dlg;
  44.     dlg.DoModal();
  45.  
  46.    return FALSE;
  47. }
  48.