Announcement

Collapse
No announcement yet.

LISTVIEW and %LVS_EX_CHECKBOXES

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • LISTVIEW and %LVS_EX_CHECKBOXES

    When using %LVS_EX_CHECKBOXES with a LISTVIEW:
    1. Is it possible to determine the state (checked or unchecked) of a checkbox on a given line? If so; How?

    2. Is it possible to set the state (checked or unchecked) of a checkbox on a given line? If so; How?

  • #2
    looking it up in MSDN: http://msdn.microsoft.com/en-us/libr...32(VS.85).aspx

    also ISTR a recent post by Pedro Ramirez which did something like this.

    Comment


    • #3
      I would do a search for MCM's "Owner Drawn"

      Somewhere here I have code (can not find it at the moment) but it was based from his example.

      I will look around and see if I can find it, but probably faster if you search yourself
      Engineer's Motto: If it aint broke take it apart and fix it

      "If at 1st you don't succeed... call it version 1.0"

      "Half of Programming is coding"....."The other 90% is DEBUGGING"

      "Document my code????" .... "WHYYY??? do you think they call it CODE? "

      Comment


      • #4
        You don't need owner drawn to get the check status... besides, what I use there will NOT work with a regular "Checkbox Style" listview control, since the control does not know those subitems (columns) are checkboxes.
        Michael Mattias
        Tal Systems (retired)
        Port Washington WI USA
        [email protected]
        http://www.talsystems.com

        Comment


        • #5
          COMMCTRL.INC:

          Code:
           
          ListView_GetCheckState
          ListView_SetCheckState
          kgpsoftware.com | Slam DBMS | PrpT Control | Other Downloads | Contact Me

          Comment

          Working...
          X