CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 1999
    Posts
    1

    disable listctrl checkbox

    How can I disable a specific item checkbox from a report style list control.
    I'm calling SetItemState with LVIS_STATEIMAGEMASK and It is not working properly.
    Please help


  2. #2
    Join Date
    Sep 2003
    Location
    M...N
    Posts
    220

    Re: disable listctrl checkbox

    I would like to have this ability too.
    Anyone got any hint?

  3. #3
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: disable listctrl checkbox

    You didn't show any code.
    Quote Originally Posted by MSDN
    Enables check boxes for items in a list-view control. When set to this style, the control creates and sets a state image list with two images using DrawFrameControl. State image 1 is the unchecked box, and state image 2 is the checked box. Setting the state image to zero removes the check box altogether.
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

  4. #4
    Join Date
    Sep 2003
    Location
    M...N
    Posts
    220

    Re: disable listctrl checkbox

    So there is no standard way to disable the checkbox at ListCtrl, since it only has two images: Check and Unchecked.



    Got to implement it by ourselves.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured