Thread: Select entire row of listview (using win32)

  1. #1
    Registered User Mokkan's Avatar
    Join Date
    Oct 2003
    Posts
    20

    Post Select entire row of listview (using win32)

    How would I go about selecting an entire row in a listview control with just pure Win32 API? I know it's possible with MFC... but I can't use MFC for this project. Right now, when you click on an item, it selects only the first column of the first row (screenshot attached)...

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Code:
    ListView_SetExtendedListViewStyleEx(hwndListView, LVS_EX_FULLROWSELECT, LVS_EX_FULLROWSELECT);

  3. #3
    Registered User Mokkan's Avatar
    Join Date
    Oct 2003
    Posts
    20
    Thanks a lot, anonytmouse . That works perfectly!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Listview with c/c++
    By X PaYnE X in forum Windows Programming
    Replies: 8
    Last Post: 03-20-2005, 11:29 PM
  2. Directional Keys - Useing in Console
    By RoD in forum C++ Programming
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM
  3. FAQ: Directional Keys - Useing in Console
    By RoD in forum FAQ Board
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM
  4. scandir select function
    By dsl24 in forum C Programming
    Replies: 3
    Last Post: 04-12-2002, 10:58 AM