views:

134

answers:

1

Can someone here please explain to me why the StateImageIndex on TreeNode is limited to a maximum value of 14? It doesn't make any sense to me at all.

+2  A: 

See http://msdn.microsoft.com/en-us/library/bb774760(VS.85).aspx
http://msdn.microsoft.com/en-us/library/bb775597(VS.85).aspx
http://msdn.microsoft.com/en-us/library/bb773409(VS.85).aspx

The state images are referred to using a special mask, and it seems to be 4 bits in size, which makes 16 possible values and 0-14 seem to be usable.

Lucero