SRGTreeCtrl Class

class SRGTreeCtrl: public CTreeCtrl

SRGTreeCtrl is a simple extension of the standard CTreeCtrl class that maintains the current mouse position and the last tree view item clicked

Defined in: TreeCtrl.h

Class Members

CPoint m_CurrentPoint

Current position of the mouse cursor in screen coordinates

HTREEITEM m_LastItemHit

Last tree view item clicked by the user or NULL

 SRGTreeCtrl()

Constructor

virtual  ~SRGTreeCtrl()

Destructor

afx_msg void  OnMouseMove(UINT nFlags, CPoint point)

Overridden to store the mouse position

afx_msg void  OnLButtonDown(UINT nFlags, CPoint point)

Overridden to store the tree item clicked

afx_msg void  OnRButtonDown(UINT nFlags, CPoint point)

Overridden to store the tree item clicked