|
|
1.1 ! root 1: // mdi.h : Declares the class interfaces for the MDI sample application. ! 2: // ! 3: // This is a part of the Microsoft Foundation Classes C++ library. ! 4: // Copyright (C) 1992 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 Microsoft ! 9: // QuickHelp documentation provided with the library. ! 10: // See these sources for detailed information regarding the ! 11: // Microsoft Foundation Classes product. ! 12: // ! 13: ! 14: #ifndef __AFXMDI_H__ ! 15: #define __AFXMDI_H__ ! 16: ! 17: #include <afxwin.h> ! 18: #include <afxdlgs.h> ! 19: ! 20: #include "hello.h" ! 21: #include "bounce.h" ! 22: #include "resource.h" ! 23: #include "common.h" ! 24: ! 25: ///////////////////////////////////////////////////////////////////////////// ! 26: ! 27: class CMainWindow : public CMDIFrameWnd ! 28: { ! 29: public: ! 30: CMenu* m_pMenuInit; ! 31: ! 32: CMainWindow(); ! 33: virtual ~CMainWindow(); ! 34: ! 35: // message handlers ! 36: ! 37: afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); ! 38: afx_msg void OnAbout(); ! 39: afx_msg void OnNewHello(); ! 40: afx_msg void OnNewBounce(); ! 41: afx_msg void OnExit(); ! 42: ! 43: // custom message and handler used by child windows to notify ! 44: // parent of death ! 45: afx_msg LONG OnChildDestroy(UINT wParam, LONG lParam); ! 46: ! 47: DECLARE_MESSAGE_MAP() ! 48: }; ! 49: ! 50: ///////////////////////////////////////////////////////////////////////////// ! 51: ! 52: class CTheApp : public CWinApp ! 53: { ! 54: public: ! 55: virtual BOOL InitInstance(); ! 56: }; ! 57: ! 58: ///////////////////////////////////////////////////////////////////////////// ! 59: ! 60: #endif // __AFXMDI_H__ ! 61:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.