highlight a row in list box

This is a discussion on highlight a row in list box within the C++ Programming forums, part of the General Programming Boards category; hi, may i know how can i highlight a row in a list box using VC++? thanks alot wayne...

  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    8

    highlight a row in list box

    hi,

    may i know how can i highlight a row in a list box using VC++?

    thanks alot
    wayne

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    2,934
    >may i know how can i highlight a row in a list box using VC++?
    If you are using WINAPI, then send a LB_SETCURSEL message to the control:
    Code:
    SendMessage(hWndControl, (UINT) LB_SETCURSEL, (WPARAM) row, (LPARAM) 0);
    If you are using MFC, then I don't know. Try posting this under the Windows Programming forum.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help sorting a linked list. Beginner
    By scarlet00014 in forum C Programming
    Replies: 1
    Last Post: 09-27-2008, 06:16 PM
  2. Reverse function for linked list
    By Brigs76 in forum C++ Programming
    Replies: 1
    Last Post: 10-25-2006, 10:01 AM
  3. List box horizontal bar
    By cfriend in forum Windows Programming
    Replies: 1
    Last Post: 09-12-2004, 03:52 PM
  4. problem with structures and linked list
    By Gkitty in forum C Programming
    Replies: 6
    Last Post: 12-12-2002, 05:40 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21