Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Showing Focus on CListCtrl

Posted on 2006-11-20
2
Medium Priority
?
456 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 1000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
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.
Suggested Courses

877 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