Solved

ListView item selection

Posted on 2000-04-01
3
171 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
  • 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
cat dog challenge 18 124
Separate into files by filename 12 82
VBA "SendKeys" Syntax for Multiple Keystrokes 7 108
Line meaning 9 86
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

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