Solved

Showing Focus on CListCtrl

Posted on 2006-11-20
2
402 Views
Last Modified: 2013-11-20
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
0
Comment
Question by:jribble
2 Comments
 
LVL 14

Accepted Solution

by:
wayside earned 250 total points
ID: 17983110
You can handle the NM_SETFOCUS event for the list control, and set a selection yourself when the list control gets focus.
0
 
LVL 4

Expert Comment

by:bdunz19
ID: 17991193
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
repeateFront java challenge 31 92
Add content to output file 4 62
Generic progress indicator 6 113
WinWaitActive parameters 12 31
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now