Solved

Showing Focus on CListCtrl

Posted on 2006-11-20
2
414 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to calculate times for developing software? 8 67
Expand macro to include alternate header placement and naming 5 71
iSeries FTP Exit Program 8 136
has22 challenge 11 94
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: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

773 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