Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

CListView - Item selection

Posted on 1998-09-30
1
Medium Priority
?
263 Views
Last Modified: 2013-11-20
hi,
I have two list views ( derived from CListView ) in a
Splitter Wnd. I need the folowing behaviour:
If I select an item in one of the views a secound item
in the other view should be selected ( or marked!? ...blue
background ...). If I remove the focus from the view the
items in the view are not longer selected!It seems to me,
that items can only be selected if the view including them,
has the focus!? So only one view can have selected (marked)
items!
Am I right?
dib
0
Comment
Question by:dib
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 8

Accepted Solution

by:
Answers2000 earned 600 total points
ID: 1322726
>> Am I right ?
No

Add LVS_SHOWSELALWAYS4 style to the listview and it will always show its selection even when it doesn't have the focus.  You can add this style when creating the window or by overriding PreCreateWindow and using
cs.style |= LVS_SHOWSELALWAYS ;

0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

636 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