Solved

ListView item selection

Posted on 2000-04-01
3
172 Views
Last Modified: 2013-11-20
How can I select a full row of a list view control in VC++5.0?
0
Comment
Question by:imtiazahmad
[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
  • 2
3 Comments
 

Expert Comment

by:load_o_crap
ID: 2676004
int nStyleEx = LVS_EX_FULLROWSELECT  |  LVS_EX_HEADERDRAGDROP;
      m_listView.SendMessage(LVM_SETEXTENDEDLISTVIEWSTYLE, nStyleEx, nStyleEx);


m_listView is the member variable of your listCtrl... this will only work if you have IE3 and above...

Remember to call CListView.GetListCtrl() first to get to the listCtrl inside the list view.

hope this helps
0
 
LVL 1

Accepted Solution

by:
kkarunakar earned 3 total points
ID: 2676426
Hi there..
void ListView_SetExtendedListViewStyle(
    HWND hwndLV,
    DWORD dwExStyle
);
use this macro to select one full row in list view.
hwndLV = m_listView.m_hWnd;
of
hwndLV = m_listView.GetSafeHWnd();

and
dwExStyle = LVS_EX_FULLROWSELECT ;

This will select one full row.
Hope it will work. U r comment is welcome
Regards keshav
0
 
LVL 1

Expert Comment

by:kkarunakar
ID: 2694034
Thanks for ur acceptance of my answer!!!
Regards
Keshav
0

Featured Post

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
Need to retreive data from .TFS file exported by DVR 8 244
Error on moodle after upgrade 3 149
Tab names are off by one 5 54
bigDiff challenge 17 135
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…
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 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.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 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