home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / general / cmnctrl2 / cmnctrl2.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.5 KB  |  58 lines

  1. // CmnCtrl2.cpp : Defines the class behaviors for the application.
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #include "stdafx.h"
  14. #include "CmnCtrl2.h"
  15. #include "propsht.h"
  16.  
  17. #ifdef _DEBUG
  18. #define new DEBUG_NEW
  19. #undef THIS_FILE
  20. static char THIS_FILE[] = __FILE__;
  21. #endif
  22.  
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CCmnCtrl2App
  25.  
  26. BEGIN_MESSAGE_MAP(CCmnCtrl2App, CWinApp)
  27.     //{{AFX_MSG_MAP(CCmnCtrl2App)
  28.     //}}AFX_MSG
  29.     ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  30. END_MESSAGE_MAP()
  31.  
  32. /////////////////////////////////////////////////////////////////////////////
  33. // CCmnCtrl2App construction
  34.  
  35. CCmnCtrl2App::CCmnCtrl2App()
  36. {
  37. }
  38.  
  39. /////////////////////////////////////////////////////////////////////////////
  40. // The one and only CCmnCtrl2App object
  41.  
  42. CCmnCtrl2App theApp;
  43.  
  44. /////////////////////////////////////////////////////////////////////////////
  45. // CCmnCtrl2App initialization
  46.  
  47. BOOL CCmnCtrl2App::InitInstance()
  48. {
  49.     AfxEnableControlContainer();
  50.  
  51.     // Standard initialization
  52.  
  53.     CAllControlsSheet   allcontrolssheet(_T("Common Controls Sample"));
  54.     m_pMainWnd = &allcontrolssheet;
  55.     allcontrolssheet.DoModal();
  56.     return FALSE;
  57. }
  58.