SingleClick Selection in CListCtrl
Posted on 1998-09-23
I have a splitter window with two panes - one is a CListView and the other is a CFormView.
I would like the CListView to notify the CFormView whenever a list item is selected by a SINGLE CLICK. I have this working for a DOUBLE CLICK by overriding WM_LBUTTONDBLCLICK. I tried overriding WM_ONLBUTTONUP, but it only seems to get called if I double click.
If I add a handler for the NM_CLICK message, it does get called, but the arguments to that method do not provide either the mouse position or the index of the selected list item, so I don't know how to use it.
Any Ideas?? Thanks!