本帖最后由 Bone 于 2018-5-21 10:45 编辑
如图,找了这个方法来设置列头和列内容居中,但是发现这样设置后,中文字符超过两个就显示不完整了
多余的字符成了问号,这个有办法解决么?#include <WindowsConstants.au3>
#include <GUIListView.au3>
$FrmMain = GUICreate("测试", 1227, 629, 296, 209)
$Group1 = GUICtrlCreateGroup("测试内容", 8, 80, 1009, 537)
$Lvw1 = GUICtrlCreateListView("Column 1|Column 2|Column 3|Column 4|Column 5", 16, 104, 993, 505, -1)
_GUICtrlListView_SetColumn($Lvw1, 0, "阿萨德阿萨德", 200, 2)
_GUICtrlListView_SetColumn($Lvw1, 1, "全文到阿萨德", 120, 2)
_GUICtrlListView_SetColumn($Lvw1, 2, "离开家阿萨德", 150, 2)
_GUICtrlListView_SetColumn($Lvw1, 3, "阿斯卡堵截阿萨德",145, 2)
_GUICtrlListView_SetColumn($Lvw1, 4, "在西凑阿萨德", 95, 2)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|