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

  1. // mdichild.h
  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. // Purpose: interface of the CDynaMDIChildWnd class
  14. //
  15. // Functions:
  16. //   Most of this file was generated by AppWizard.  The functions
  17. //   which contain code specific to this sample are:
  18. //
  19. //      CDynaMDIChildWnd::OnMDIActivate()    -- handle activation/deactivation
  20. //      CDynaMDIChildWnd::RefreshColorMenu() -- update Color submenu contents
  21. //
  22. //   These functions are implemented in mdichild.cpp.
  23.  
  24. /////////////////////////////////////////////////////////////////////////////
  25. // CDynaMDIChildWnd frame
  26.  
  27. class CDynaMDIChildWnd : public CMDIChildWnd
  28. {
  29.     DECLARE_DYNCREATE(CDynaMDIChildWnd)
  30. protected:
  31.     CDynaMDIChildWnd();         // protected constructor used by dynamic creation
  32.  
  33. // Attributes
  34. public:
  35.  
  36. // Operations
  37. public:
  38.     void RefreshColorMenu();
  39.  
  40. // Implementation
  41. protected:
  42.     virtual ~CDynaMDIChildWnd();
  43.  
  44.     // Generated message map functions
  45.     //{{AFX_MSG(CDynaMDIChildWnd)
  46.     afx_msg void OnMDIActivate(BOOL bActivate, CWnd* pActivateWnd, CWnd* pDeactivateWnd);
  47.     //}}AFX_MSG
  48.     DECLARE_MESSAGE_MAP()
  49. };
  50.  
  51. /////////////////////////////////////////////////////////////////////////////
  52.