ListView控件显示网格整个控件就会凸起,请问怎么解决?
#include <GuiListView.au3>#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <WindowsConstants.au3>
#region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 623, 442, 192, 124)
$ListView1 = GUICtrlCreateListView("1|2|3|4", 40, 30, 541, 371, "", $LVS_EX_GRIDLINES)
$List = GUICtrlCreateListViewItem("2014/03/23-23:12:23|12341234|12341234|Test", $ListView1)
_GUICtrlListView_SetColumnWidth($ListView1, 0, $LVSCW_AUTOSIZE)
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
本帖最后由 lpxx 于 2014-9-9 05:05 编辑
#include <GuiListView.au3>
#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <WindowsConstants.au3>
#region ### START Koda GUI section ### Form=
Global $iExStyle = ""
$Form1 = GUICreate("Form1", 623, 442, 192, 124)
$ListView1 = GUICtrlCreateListView("1|2|3|4", 40, 30, 541, 371, -1)
$iExStyle += $LVS_EX_GRIDLINES ; 项目和子项显示网格.
_GUICtrlListView_SetExtendedListViewStyle($ListView1, $iExStyle)
$List = GUICtrlCreateListViewItem("2014/03/23-23:12:23|12341234|12341234|Test", $ListView1)
_GUICtrlListView_SetColumnWidth($ListView1, 0, $LVSCW_AUTOSIZE)
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd 后来找着别人写现成的程序用SPY++读出其中的控件样式,结果ListView控件又凹下去了。额。
不错支持一下
页:
[1]