OAMSIZEDOCKBAR.H
上传用户:lvjun8202
上传日期:2013-04-30
资源大小:797k
文件大小:3k
- #if !defined(AFX_OAMSIZEDOCKBAR_H__112ECEE6_0C04_11D3_BAAE_12345600558E__INCLUDED_)
- #define AFX_OAMSIZEDOCKBAR_H__112ECEE6_0C04_11D3_BAAE_12345600558E__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // OAMSizeDockBar.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // COAMSizeDockBar window
- class COAMControlBar;
- class COAMSizeDockBar : public CDockBar
- {
- DECLARE_DYNAMIC(COAMSizeDockBar)
- // Construction
- public:
- COAMSizeDockBar();
- // Attributes
- public:
- protected:
- int m_iSafeSpace;
- CPoint m_ptCurDrag;
- CRect m_rcTrack;
- CPoint m_ptStartDrag;
- BOOL m_bDragging;
- BOOL m_bOkToDrag;
- HCURSOR m_curHSplitBar;
- HCURSOR m_curVSplitBar;
- int m_iTrackBorderSize;
- int m_iActualSize;
- COLORREF m_clrBtnHilite;
- COLORREF m_clrBtnShadow;
- COLORREF m_clrBtnFace;
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(COAMSizeDockBar)
- public:
- virtual CSize CalcDynamicLayout(int nLength, DWORD nMode);
- virtual void DoPaint(CDC *pDC);
- virtual BOOL IsDockBar() const;
- virtual BOOL IsDockSizeBar() const;
- virtual void OnInvertTracker(const CRect&);
- virtual void HitTest(const CPoint& point);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~COAMSizeDockBar();
- // Generated message map functions
- protected:
- //{{AFX_MSG(COAMSizeDockBar)
- afx_msg void OnNcPaint();
- afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp);
- afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
- afx_msg UINT OnNcHitTest(CPoint point);
- afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg void OnSysColorChange();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- public:
- void Normalize(COAMControlBar*);
- void Maximize(COAMControlBar*);
- void CalcSizeBarLayout();
- void SetActualSize(int iSize);
- void EraseNonClient();
- void DrawBorders(CDC *pDC,CRect& rect);
- void RecalcAllExcept(COAMSizeDockBar *pBar);
- COAMControlBar* GetDockedSizeBar(int nPos);
- protected:
- BOOL IsLastControlBar(int index);
- void GetAvailableRect(CRect &rect);
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_OAMSIZEDOCKBAR_H__112ECEE6_0C04_11D3_BAAE_12345600558E__INCLUDED_)