OAMSIZEDOCKBAR.H
上传用户:shgx688
上传日期:2009-12-27
资源大小:855k
文件大小:3k
源码类别:

SNMP编程

开发平台:

MultiPlatform

  1. #if !defined(AFX_OAMSIZEDOCKBAR_H__112ECEE6_0C04_11D3_BAAE_12345600558E__INCLUDED_)
  2. #define AFX_OAMSIZEDOCKBAR_H__112ECEE6_0C04_11D3_BAAE_12345600558E__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // OAMSizeDockBar.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // COAMSizeDockBar window
  10. class COAMControlBar;
  11. class COAMSizeDockBar : public CDockBar
  12. {
  13. DECLARE_DYNAMIC(COAMSizeDockBar)
  14. // Construction
  15. public:
  16. COAMSizeDockBar();
  17. // Attributes
  18. public:
  19. protected:
  20. int m_iSafeSpace;
  21. CPoint m_ptCurDrag;
  22. CRect m_rcTrack;
  23. CPoint m_ptStartDrag;
  24. BOOL m_bDragging;
  25. BOOL m_bOkToDrag;
  26. HCURSOR m_curHSplitBar;
  27. HCURSOR m_curVSplitBar;
  28. int m_iTrackBorderSize;
  29. int m_iActualSize;
  30. COLORREF m_clrBtnHilite;
  31. COLORREF m_clrBtnShadow;
  32. COLORREF m_clrBtnFace;
  33. // Operations
  34. public:
  35. // Overrides
  36. // ClassWizard generated virtual function overrides
  37. //{{AFX_VIRTUAL(COAMSizeDockBar)
  38. public:
  39. virtual CSize CalcDynamicLayout(int nLength, DWORD nMode);
  40. virtual void DoPaint(CDC *pDC);
  41. virtual BOOL IsDockBar() const;
  42. virtual BOOL IsDockSizeBar() const;
  43. virtual void OnInvertTracker(const CRect&);
  44. virtual void HitTest(const CPoint& point);
  45. //}}AFX_VIRTUAL
  46. // Implementation
  47. public:
  48. virtual ~COAMSizeDockBar();
  49. // Generated message map functions
  50. protected:
  51. //{{AFX_MSG(COAMSizeDockBar)
  52. afx_msg void OnNcPaint();
  53. afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp);
  54. afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
  55. afx_msg UINT OnNcHitTest(CPoint point);
  56. afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
  57. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  58. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  59. afx_msg void OnSysColorChange();
  60. //}}AFX_MSG
  61. DECLARE_MESSAGE_MAP()
  62. public:
  63. void Normalize(COAMControlBar*);
  64. void Maximize(COAMControlBar*);
  65. void CalcSizeBarLayout();
  66. void SetActualSize(int iSize);
  67. void EraseNonClient();
  68. void DrawBorders(CDC *pDC,CRect& rect);
  69. void RecalcAllExcept(COAMSizeDockBar *pBar);
  70. COAMControlBar* GetDockedSizeBar(int nPos);
  71. protected:
  72. BOOL IsLastControlBar(int index);
  73. void GetAvailableRect(CRect &rect);
  74. };
  75. /////////////////////////////////////////////////////////////////////////////
  76. //{{AFX_INSERT_LOCATION}}
  77. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  78. #endif // !defined(AFX_OAMSIZEDOCKBAR_H__112ECEE6_0C04_11D3_BAAE_12345600558E__INCLUDED_)