I currently don't have access to the source code, but if I remember the implementation correctly, the native tree view control doesn't have explicit support for state image 0. And it assumes that the state image always is a check box. So I would call it "missing functionality".
You can use the ItemStateImageChanging event to suppress changing the state image from 0 to 1. The OptionTreeView sample should demonstrate how to do it.
Regards
TiKu
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
I currently don't have access to the source code, but if I remember the implementation correctly, the native tree view control doesn't have explicit support for state image 0. And it assumes that the state image always is a check box. So I would call it "missing functionality".
You can use the ItemStateImageChanging event to suppress changing the state image from 0 to 1. The OptionTreeView sample should demonstrate how to do it.
Regards
TiKu
Thnx and thats exactly what I'm using for a workaround