Getting current selection of list control
Posted on 1999-06-22
I'm using MFC in Visual C++ 5.
I have a dialog with a list control in report mode. The dialog also has a static text which is supposed to display additional information about the currently selected item. The list control is set to single selection, but there does not seem to be any simple way to retrieve the current selection. How do I get the index of the currently selected item?
I would appreciate some source code.
I have previously used a list box, in which such a function was available, but now I switched over to a list control and can't figure out how to get this done.