Created
June 9, 2021 21:33
-
-
Save an01f01/f7fe02d7d62fa06c6c367e17c6678a37 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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