home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / C++-7 / DISK8 / MFC / SAMPLES / OSERVER / MAINWND.H$ / mainwnd
Encoding:
Text File  |  1992-03-14  |  1.4 KB  |  55 lines

  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992 Microsoft Corporation
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Foundation Classes Reference and Microsoft
  7. // QuickHelp documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10.  
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CMainWnd:
  13.  
  14. class CBibDoc;
  15.  
  16. class CMainWnd : public CFrameWnd
  17. {
  18. protected:
  19.     CListBox    m_listbox;          // manipulated by document as well as window
  20.     CBibDoc*    m_pDoc;
  21.  
  22. public:
  23.     CMainWnd(BOOL bEmbedded);
  24.  
  25. // Attributes
  26.     CBibDoc*    GetDocument()
  27.                     { return m_pDoc; }
  28.  
  29. // Implementation
  30. protected:
  31.     // windows messages
  32.     afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu);
  33.     afx_msg void OnSize(UINT nType, int cx, int cy);
  34.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  35.     afx_msg void OnSetFocus(CWnd* pOldWnd);
  36.     afx_msg void OnClose();
  37.     afx_msg void OnDestroy();
  38.  
  39.     // standard menu commands
  40.     afx_msg void OnAbout();
  41.  
  42.     // non-embedded options
  43.     afx_msg void OnItemAdd();
  44.     afx_msg void OnItemDelete();
  45.     afx_msg void OnItemModify();
  46.  
  47.     // embedded options
  48.     afx_msg void OnUpdateClient();
  49.  
  50.     DECLARE_MESSAGE_MAP()
  51. };
  52.  
  53. /////////////////////////////////////////////////////////////////////////////
  54.  
  55.