joyran 发表于 2013-12-1 19:56:38

{:face (197):}

chamlien 发表于 2016-2-17 11:33:41

回复 8# pusofalse

测试只能换一行,"123" & @CRLF & "456" " & @CRLF & " 换行全部失效"

chamlien 发表于 2016-2-17 11:38:42

回复 17# chamlien

高度改为60就可以了。
If DllStructGetData($tMeasureItem, "CtlType") == $ODT_LISTVIEW Then
                DllStructSetData($tMeasureItem, "itemHeight", 60)
                Return 1
EndIf

chamlien 发表于 2016-2-17 13:44:06

回复 18# chamlien

不过发现了一个问题,上方代码设置按钮颜色时不能显示,如:
$b = GUICtrlCreateButton("该按钮不能显示",5,10,20,20)
GUICtrlSetColor($b, 0x0000FF)
页: 1 [2]
查看完整版本: 【已解决】如何在Listview的SubItem中多行显示文本?