Skip to content

Instantly share code, notes, and snippets.

@an01f01
Created June 9, 2021 21:33
Show Gist options
  • Save an01f01/f7fe02d7d62fa06c6c367e17c6678a37 to your computer and use it in GitHub Desktop.
Save an01f01/f7fe02d7d62fa06c6c367e17c6678a37 to your computer and use it in GitHub Desktop.
class CTreeCtrlX : public CTreeCtrl
{
protected:
HTREEITEM m_hItemFirstSel; // Init to NULL in constructor
DWORD m_dwDragStart;
void ClearSelection();
BOOL SelectItems(HTREEITEM hItemFrom, HTREEITEM hItemTo);
HTREEITEM GetFirstSelectedItem();
HTREEITEM GetNextSelectedItem( HTREEITEM hItem );
HTREEITEM GetPrevSelectedItem( HTREEITEM hItem );
public:
DECLARE_MESSAGE_MAP()
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment