问题
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.
回答1:
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.
来源:https://stackoverflow.com/questions/1471227/why-is-stateimageindex-on-treenode-limted-to-a-max-value-of-14