Why is StateImageIndex on TreeNode limted to a max value of 14?

不打扰是莪最后的温柔 提交于 2020-01-06 16:53:32

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!