词条 | CDockBar |
释义 | CDockBarclass CDockBar 派生于 public CControlBar 他的函数有: DECLARE_DYNAMIC(CDockBar) // Construction public: /* explicit */ CDockBar(BOOL bFloating = FALSE); // TRUE if attached to CMiniDockFrameWnd virtual BOOL Create(CWnd* pParentWnd, DWORD dwStyle, UINT nID); // Attributes BOOL m_bFloating; virtual BOOL IsDockBar() const; int GetDockedCount() const; virtual int GetDockedVisibleCount() const; // Operations void DockControlBar(CControlBar* pBar, LPCRECT lpRect = NULL); void ReDockControlBar(CControlBar* pBar, LPCRECT lpRect = NULL); BOOL RemoveControlBar(CControlBar*, int nPosExclude = -1, int nAddPlaceHolder = 0); void RemovePlaceHolder(CControlBar* pBar); // Implementation public: virtual ~CDockBar(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif virtual CSize CalcFixedLayout(BOOL bStretch, BOOL bHorz); virtual void DoPaint(CDC* pDC); // public implementation helpers void GetBarInfo(CControlBarInfo* pInfo); void SetBarInfo(CControlBarInfo* pInfo, CFrameWnd* pFrameWnd); int FindBar(CControlBar* pBar, int nPosExclude = -1); void ShowAll(BOOL bShow); CPtrArray m_arrBars; // each element is a CControlBar protected: BOOL m_bLayoutQuery; CRect m_rectLayout; CControlBar* GetDockedControlBar(int nPos) const; // implementation helpers int Insert(CControlBar* pBar, CRect rect, CPoint ptMid); virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler); //{{AFX_MSG(CDockBar) afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS* lpncsp); afx_msg void OnNcPaint(); afx_msg void OnWindowPosChanging(LPWINDOWPOS lpWndPos); afx_msg void OnPaint(); afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg LRESULT OnSizeParent(WPARAM, LPARAM); //}}AFX_MSG DECLARE_MESSAGE_MAP() friend class CMiniDockFrameWnd; 他的作用是: 窗口。 |
随便看 |
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。