如题! 在48小时内能给出方法或代码者,本人给出500分!!!

解决方案 »

  1.   

    发送TVM_SETITEMHEIGHT消息
    SendMessage TreeView1.hWnd, TVM_SETITEMHEIGHT, 高度, byval 0&TVM_SETITEMHEIGHT
    TVM_SETITEMHEIGHT
        wParam = (WPARAM)(SHORT) cyItem;
        lParam = 0;Sets the height of the tree view items. You can send this message explicitly or by using the TreeView_SetItemHeight macro. Returns the previous height of the items, in pixels. 
    cyItem 
    New height of every item in the tree view, in pixels. If this argument is less than the height of the images, it will be set to the height of the images. If this argument is not even and the tree view control does not have the TVS_NONEVENHEIGHT style, this value 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 tree view control uses this value for the height of all items. To modify the height of individual items, see the description of the iIntegral member of the TVITEMEX structure. Version 4.71 See also TVM_GETITEMHEIGHT