Showing Focus on CListCtrl

When I tab into my CListCtrl, there is no visible indication that the list has focus.  I would expect to see a dotted line surrounding an item in the list (even though the item is not selected), or something like that.  Is there any easy way to show that a CListCtrl has focus?  Once I arrow down, the first item shows as selected, but I'm afraid this point might be lost on the users.

Thanks,

Joe
jribbleAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
waysideConnect With a Mentor Commented:
You can handle the NM_SETFOCUS event for the list control, and set a selection yourself when the list control gets focus.
0
 
bdunz19Commented:
Hi Joe,

If I'm not mistaken, you should be able to always show your selection by creating your control with the LVS_SHOWSELALWAYS style.

Good luck,
Brandon
0
All Courses

From novice to tech pro — start learning today.