Prev Next
TreeView_GetVisibleCount info Overview GroupThe TreeView_GetVisibleCount macro obtains the number of items that can be fully visible in the client window of a tree-view control. You can use this macro or explicitly send the TVM_GETVISIBLECOUNT message. UINT TreeView_GetVisibleCount(
Parameters
Return ValuesReturns the number of items that can be fully visible in the client window of the tree-view control. RemarksThe TreeView_GetVisibleCount macro returns the number of items that can be fully visible, which may be greater than the number of items in the control. The control calculates this value by dividing the height of the client window by the height of an item. Note that the return value is the number of items that can be fully visible. If you can see all of 20 items, and part of one more item, the return value is 20, not 21. See Also |