www.pudn.com > MarkupDemo.rar > DividerCtrl.h


// DividerCtrl.h : header file 
// 
// Markup Release 6.1 Lite 
// Copyright (C) 1999-2001 First Objective Software, Inc. All rights reserved 
// This entire notice must be retained in this source code 
// Redistributing this source code requires written permission 
// This software is provided "as is", with no warranty. 
// Latest fixes enhancements and documentation at www.firstobject.com 
 
#if !defined(AFX_DIVIDERCTRL_H__2BF4ECE9_F408_11D2_A0D2_00105A27C570__INCLUDED_) 
#define AFX_DIVIDERCTRL_H__2BF4ECE9_F408_11D2_A0D2_00105A27C570__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
///////////////////////////////////////////////////////////////////////////// 
// CDividerCtrl control 
 
class CDividerCtrl : public CStatic 
{ 
// Construction 
public: 
	CDividerCtrl(); 
	int CalculateOffset( int nSizeOfRange ); 
	int GetWidth(); 
	BOOL m_bHasCapture; 
	CPoint m_pointOrig; 
	CPoint m_pointNew; 
	int m_nOffset; 
	int m_nFractionOf1000; 
	int m_bDisappearingBar; 
	int m_nWidth; 
	int m_nMinWidthFromEdge; 
	int m_nMinFraction; 
	int m_nMaxFraction; 
 
	enum 
	{ 
		NoOrientation, 
		MoveHorizontal, 
		MoveVertical 
	} 
	m_enumOrientation; 
 
	// These are set by CalculateOffset() 
	BOOL m_bAtLowEnd; 
	BOOL m_bAtHighEnd; 
 
	HCURSOR m_hCursor; 
	void SetSplitterCursor(); 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CDividerCtrl) 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CDividerCtrl(); 
 
	// Generated message map functions 
protected: 
	//{{AFX_MSG(CDividerCtrl) 
	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 OnCaptureChanged(CWnd *pWnd); 
	//}}AFX_MSG 
 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_DIVIDERCTRL_H__2BF4ECE9_F408_11D2_A0D2_00105A27C570__INCLUDED_)