www.pudn.com > tuxianghechengchengxu.rar > DYNSPLITTERWND.H, change:1998-03-10,size:1733b


// 
// SAGA Incorporated (saga@gis.net) MFC Goodies 
// Developed by Andrew Slivker for www.codeguru.com 
//  
//  
 
// CDynSplitterWnd.h : header file 
// 
// Version:			1.0 
// Revision:		02/03/98 
 
#ifndef _DYN_SPLITTER_H 
#define _DYN_SPLITTER_H 
 
// DynSplitterWnd.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CDynSplitterWnd window 
 
class CDynSplitterWnd : public CSplitterWnd 
{ 
// Construction 
public: 
	CDynSplitterWnd(); 
 
// Attributes 
public: 
	BOOL	IsDynamic()					    
				{ return m_bDynSplit; } 
	void	SetDynamic(BOOL bDynSplit = TRUE)  
				{ m_bDynSplit = bDynSplit; } 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CDynSplitterWnd) 
	virtual void OnInvertTracker(const CRect& rect); 
	virtual void StartTracking(int ht); 
	virtual void StopTracking(BOOL bAccept); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CDynSplitterWnd(); 
 
protected: 
	CPoint  m_OldPoint; 
	BOOL	m_bDynSplit; 
 
	enum HitTestValue 
	{ 
		noHit                   = 0, 
		vSplitterBox            = 1, 
		hSplitterBox            = 2, 
		bothSplitterBox         = 3,        // just for keyboard 
		vSplitterBar1           = 101, 
		vSplitterBar15          = 115, 
		hSplitterBar1           = 201, 
		hSplitterBar15          = 215, 
		splitterIntersection1   = 301, 
		splitterIntersection225 = 525 
	}; 
 
 
	// Generated message map functions 
protected: 
	//{{AFX_MSG(CDynSplitterWnd) 
	afx_msg void OnMouseMove(UINT nFlags, CPoint point); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
#endif // _DYN_SPLITTER_H