This topic has not yet been rated - Rate this topic

CTreeCtrl::SetItemHeight 

This member function implements the behavior of the Win32 message TVM_SETITEMHEIGHT, as described in the Platform SDK.


SHORT SetItemHeight(
   SHORT cyHeight 
);

Parameters

cyHeight

Specifies the new height of every item in the tree view, in pixels. If this argument is less than the height of the images, then it will be set to the height of the images. If this argument is not even, it will be rounded down to the nearest even value. If this argument is -1, the control will revert to using its default item height.

The previous height of the items, in pixels.

See the example for CTreeCtrl::GetItemHeight.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ