Setting ListViewItem indeterminate state in .NET2/Whidbey

  • Thread starter Thread starter Annette Miller
  • Start date Start date
A

Annette Miller

Hi All,

Just trying to work out how to set a listview item's checked state to
indeterminate. ListViewItemStates looks obvious but as far as I can find its
only used in DrawItem and DrawSubItem and even then it's not a property that
can be set - only read.

A quick search in Google turnt up nothing. So how to set the item state to
indeterminate?

Cheers
 
The ListViewItemStates is the entire state of the item, not just the check
state of the item. Out of the box, .Net supports just two check states for a
listitem - checked and unchecked.
To implement multi-state check boxes, you will have to use state-image lists
and set the item state using p/Invoke ( see LVM_SETIMAGELIST and
LVM_SETITEMSTATE messages)

----------------
-Atul, Sky Software http://www.ssware.com
Shell MegaPack For .Net & ActiveX
Windows Explorer GUI Controls
&
Quick-Launch Like Appbars, MSN/Office2003 Style Popups,
System Tray Icons and Shortcuts/Internet Shortcuts
 
Back
Top