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

  1. // CmnCtrl1.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. #include "stdafx.h"
  13. #include "CmnCtrl1.h"
  14. #include "propsht.h"
  15.  
  16. #ifdef _DEBUG
  17. #define new DEBUG_NEW
  18. #undef THIS_FILE
  19. static char THIS_FILE[] = __FILE__;
  20. #endif
  21.  
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CCmnCtrl1App
  24.  
  25. BEGIN_MESSAGE_MAP(CCmnCtrl1App, CWinApp)
  26.     //{{AFX_MSG_MAP(CCmnCtrl1App)
  27.     //}}AFX_MSG
  28.     ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  29. END_MESSAGE_MAP()
  30.  
  31. /////////////////////////////////////////////////////////////////////////////
  32. // CCmnCtrl1App construction
  33.  
  34. CCmnCtrl1App::CCmnCtrl1App()
  35. {
  36. }
  37.  
  38. /////////////////////////////////////////////////////////////////////////////
  39. // The one and only CCmnCtrl1App object
  40.  
  41. CCmnCtrl1App theApp;
  42.  
  43. /////////////////////////////////////////////////////////////////////////////
  44. // CCmnCtrl1App initialization
  45.  
  46. BOOL CCmnCtrl1App::InitInstance()
  47. {
  48.     AfxEnableControlContainer();
  49.  
  50.     // Standard initialization
  51.  
  52.     CAllControlsSheet   allcontrolssheet(_T("Common Controls Sample"));
  53.     m_pMainWnd = &allcontrolssheet;
  54.     allcontrolssheet.DoModal();
  55.     return FALSE;
  56. }
  57.