请教!!! 如何改变TREEVIEW的行距?

ILOVEWENDY 2003-03-29 03:43:09
如题! 在48小时内能给出方法或代码者,本人给出500分!!!
...全文
176 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
web1999 2003-07-03
  • 打赏
  • 举报
回复
up
lxcc 2003-04-04
  • 打赏
  • 举报
回复
up
zyl910 2003-03-29
  • 打赏
  • 举报
回复
发送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

northwolves 2003-03-29
  • 打赏
  • 举报
回复
不易。改变字体大小可以改变绝对行距。

1,451

社区成员

发帖
与我相关
我的任务
社区描述
VB 控件
社区管理员
  • 控件
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧