Thread: displaying a checkbox to the List view control

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    2

    displaying a checkbox to the List view control

    Can anyone help me how to set the checkbox property in the list view control.
    I want the first column of the list view control to show checkbox

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    set a new style

    will need a newish version of Comctl32.dll
    4.7 at least

    Code:
    exStyles = LVS_EX_CHECKBOXES;
    ListView_SetExtendedListViewStyleEx(hLV, exStyles, exStyles);
    
    
    //this macro will return false if not checked or TRUE if checked
    ListView_GetCheckState(hLV,iIndexOfItem)
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Following CTools
    By EstateMatt in forum C Programming
    Replies: 5
    Last Post: 06-26-2008, 10:10 AM
  2. singly linked circular list
    By DarkDot in forum C++ Programming
    Replies: 0
    Last Post: 04-24-2007, 08:55 PM
  3. instantiated from here: errors...
    By advocation in forum C++ Programming
    Replies: 5
    Last Post: 03-27-2005, 09:01 AM
  4. Linked List Help
    By CJ7Mudrover in forum C Programming
    Replies: 9
    Last Post: 03-10-2004, 10:33 PM
  5. singly linked list
    By clarinetster in forum C Programming
    Replies: 2
    Last Post: 08-26-2001, 10:21 PM