www.pudn.com > mfcopentree.rar > WorkDlgBar.h


#if !defined(AFX_WORKDLGBAR_H__F31073DC_6F75_4DC1_B06A_B953B572272D__INCLUDED_) 
#define AFX_WORKDLGBAR_H__F31073DC_6F75_4DC1_B06A_B953B572272D__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// WorkDlgBar.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CWorkDlgBar dialog 
 
#include "MfcopenDoc.h" 
 
class CWorkDlgBar : public CControlBar 
{ 
// Construction 
public: 
	CWorkDlgBar();   // standard constructor 
    BOOL IsHorz() const; 
	CPoint& ClientToWnd(CPoint& point); 
	void OnInvertTracker(const CRect& rect); 
	void StopTracking(BOOL bAccept); 
	void StartTracking(); 
 
	virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler); 
	virtual CSize CalcDynamicLayout(int nLength,DWORD dwMode); 
	virtual CSize CalcFixedLayout(BOOL bStretch,BOOL bHorz); 
	virtual BOOL Create(CWnd* pParentWnd,CTreeCtrl* pTree,CString &pTitle,UINT nID,DWORD dwStyle=WS_CHILD|WS_VISIBLE|CBRS_LEFT|CBRS_SIZE_DYNAMIC); 
 
// Dialog Data 
	//{{AFX_DATA(CWorkDlgBar) 
	enum { IDD = IDD_DIALOGBAR }; 
	//}}AFX_DATA 
 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CWorkDlgBar) 
	public: 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	void DrawGripper(CDC &dc); 
	CTreeCtrl* m_pTree; 
	CStatic* m_pStatic; 
	CSize  m_sizeMin; 
	CSize  m_sizeHorz; 
	CSize  m_sizeVert; 
	CSize  m_sizeFloat; 
	CRect  m_rectBorder; 
	CRect  m_rectTracker; 
	UINT   m_nDockBarID; 
	CPoint m_ptOld; 
	BOOL   m_bTracking; 
	BOOL   m_bInRecalcNC; 
	int    m_cxEdge; 
	CRect  m_rectUndock; 
	CRect  m_rectClose; 
	CRect  m_rectGripper; 
	int    m_cxGripper; 
	int    m_cxBorder; 
 
private: 
	const COLORREF m_clrBtnShadow; 
	const COLORREF m_clrBtnHilight; 
 
 
	// Generated message map functions 
	//{{AFX_MSG(CWorkDlgBar) 
    afx_msg void OnCaptureChanged(CWnd *pWnd); 
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point); 
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point); 
	afx_msg void OnMouseMove(UINT nFlags, CPoint point); 
	afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp); 
	afx_msg UINT OnNcHitTest(CPoint point); 
	afx_msg void OnNcLButtonDblClk(UINT nHitTest, CPoint point); 
	afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point); 
	afx_msg void OnNcPaint(); 
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message); 
	afx_msg void OnWindowPosChanged(WINDOWPOS FAR* lpwndpos); 
	afx_msg void OnPaint(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_WORKDLGBAR_H__F31073DC_6F75_4DC1_B06A_B953B572272D__INCLUDED_)