home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 6 / mastvb6.iso / leadtools / ocx32.lt / FXDEMO.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-15  |  1.7 KB  |  59 lines

  1. // FxDemo.cpp : Defines the class behaviors for the application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "FxDemo.h"
  6. #include "FxDlg.h"
  7.  
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CFxDemoApp
  10.  
  11. BEGIN_MESSAGE_MAP(CFxDemoApp, CWinApp)
  12.     //{{AFX_MSG_MAP(CFxDemoApp)
  13.         // NOTE - the ClassWizard will add and remove mapping macros here.
  14.         //    DO NOT EDIT what you see in these blocks of generated code!
  15.     //}}AFX_MSG
  16.     ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  17. END_MESSAGE_MAP()
  18.  
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CFxDemoApp construction
  21.  
  22. CFxDemoApp::CFxDemoApp()
  23. {
  24.     // TODO: add construction code here,
  25.     // Place all significant initialization in InitInstance
  26. }
  27.  
  28. /////////////////////////////////////////////////////////////////////////////
  29. // The one and only CFxDemoApp object
  30.  
  31. CFxDemoApp theApp;
  32.  
  33. /////////////////////////////////////////////////////////////////////////////
  34. // CFxDemoApp initialization
  35.  
  36. BOOL CFxDemoApp::InitInstance()
  37. {
  38.     AfxEnableControlContainer();
  39.  
  40.     // Standard initialization
  41.     // If you are not using these features and wish to reduce the size
  42.     //  of your final executable, you should remove from the following
  43.     //  the specific initialization routines you do not need.
  44.  
  45. #ifdef _AFXDLL
  46.     Enable3dControls();            // Call this when using MFC in a shared DLL
  47. #else
  48.     Enable3dControlsStatic();    // Call this when linking to MFC statically
  49. #endif
  50.  
  51.     CFxDemoDlg dlg;
  52.     m_pMainWnd = &dlg;
  53.     dlg.DoModal();
  54.  
  55.     // Since the dialog has been closed, return FALSE so that we exit the
  56.     //  application, rather than start the application's message pump.
  57.     return FALSE;
  58. }
  59.