home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / appwiz / hierwiz / template / ipframe.h < prev    next >
C/C++ Source or Header  |  1998-03-05  |  1KB  |  51 lines

  1. // ipframe.h : interface of the CInPlaceFrame class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 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 and/or WinHelp documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13.  
  14. #ifndef __AFXEXT_H__
  15. #include <afxext.h>         // for access to CToolBar and CStatusBar
  16. #endif
  17.  
  18. class CInPlaceFrame : public COleIPFrameWnd
  19. {
  20.     DECLARE_DYNCREATE(CInPlaceFrame)
  21. public:
  22.     CInPlaceFrame();
  23.  
  24. // Implementation
  25. public:
  26.     virtual ~CInPlaceFrame();
  27. #ifdef _DEBUG
  28.     virtual void AssertValid() const;
  29.     virtual void Dump(CDumpContext& dc) const;
  30. #endif
  31.     virtual BOOL OnCreateControlBars(CFrameWnd* pWndFrame, CFrameWnd* pWndDoc);
  32.  
  33. protected:
  34.     // control bar embedded members
  35.     CToolBar    m_wndToolBar;
  36.     COleResizeBar   m_wndResizeBar;
  37.  
  38.     // for enabling drag/drop to our window
  39.     COleDropTarget m_dropTarget;
  40.  
  41. // Generated message map functions
  42. protected:
  43.     //{{AFX_MSG(CInPlaceFrame)
  44.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  45.     afx_msg void OnUpdateContextHelp(CCmdUI* pCmdUI);
  46.     //}}AFX_MSG
  47.     DECLARE_MESSAGE_MAP()
  48. };
  49.  
  50. /////////////////////////////////////////////////////////////////////////////
  51.