Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.0 KiB

  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 related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12. class CWordPadResizeBar : public COleResizeBar
  13. {
  14. public:
  15. void SetMinSize(CSize size) {m_tracker.m_sizeMin = size;}
  16. };
  17. class CInPlaceFrame : public COleIPFrameWnd
  18. {
  19. DECLARE_DYNCREATE(CInPlaceFrame)
  20. public:
  21. CInPlaceFrame() {};
  22. // Attributes
  23. public:
  24. CToolBar m_wndToolBar;
  25. CFormatBar m_wndFormatBar;
  26. CRulerBar m_wndRulerBar;
  27. CWordPadResizeBar m_wndResizeBar;
  28. COleDropTarget m_dropTarget;
  29. // Operations
  30. public:
  31. virtual void RecalcLayout(BOOL bNotify = TRUE);
  32. virtual void CalcWindowRect(LPRECT lpClientRect,
  33. UINT nAdjustType = adjustBorder);
  34. // Overrides
  35. // ClassWizard generated virtual function overrides
  36. //{{AFX_VIRTUAL(CInPlaceFrame)
  37. public:
  38. virtual BOOL OnCreateControlBars(CFrameWnd* pWndFrame, CFrameWnd* pWndDoc);
  39. virtual void RepositionFrame(LPCRECT lpPosRect, LPCRECT lpClipRect);
  40. //}}AFX_VIRTUAL
  41. // Implementation
  42. public:
  43. #ifdef _DEBUG
  44. virtual void AssertValid() const;
  45. virtual void Dump(CDumpContext& dc) const;
  46. #endif
  47. protected:
  48. BOOL CreateToolBar(CWnd* pWndFrame);
  49. BOOL CreateFormatBar(CWnd* pWndFrame);
  50. BOOL CreateRulerBar(CWnd* pWndFrame);
  51. // Generated message map functions
  52. protected:
  53. //{{AFX_MSG(CInPlaceFrame)
  54. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  55. afx_msg void OnDestroy();
  56. afx_msg void OnHelpFinder();
  57. afx_msg void OnCharColor();
  58. afx_msg void OnPenToggle();
  59. //}}AFX_MSG
  60. LRESULT OnResizeChild(WPARAM wParam, LPARAM lParam);
  61. afx_msg LONG OnBarState(UINT wParam, LONG lParam);
  62. DECLARE_MESSAGE_MAP()
  63. };
  64. /////////////////////////////////////////////////////////////////////////////