Archived

This topic is now archived and is closed to further replies.

kuphryn

CListCtrl in Dialog Box & Select :: MFC

Recommended Posts

kuphryn    210
Hi. I started out using a CListBox in a dialog box. However, I wanted to add a grid feature, so I posted a message about how to add a grid to it. I found out the only way is to use a CListCtrl. I implemented a CListCtrl in place of the CListBox. There is one problem. I cannot get it to return a selected item or the selected items. There are no getseltime or getselitemindex. How do you determine what item a user selects in a CListCtrl? Thanks, Kuphryn

Share this post


Link to post
Share on other sites
kuphryn    210
Thanks.

What message do I need to handler to get a notification of an item being selected? I am using LVN_ITEMCHANGED.

Kuphryn

Share this post


Link to post
Share on other sites