What is the best way to select an HTREEITEM in a CTreeCtrl and obtain its label text? And why does using the OnClickTree together with GetSelectedItem always return the previously selected item?
Printable View
What is the best way to select an HTREEITEM in a CTreeCtrl and obtain its label text? And why does using the OnClickTree together with GetSelectedItem always return the previously selected item?