本帖最后由 nmgwddj 于 2010-4-10 07:05 编辑
#Include <GuiTab.au3>
_GUICtrlTab_SetItemSize($hWnd, $iWidth, $iHeight)
代码如下#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#include <GuiTab.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("窗体1", 401, 301, 300, 210)
$Tab1 = GUICtrlCreateTab(16, 20, 369, 217, $TCS_BUTTONS)
_GUICtrlTab_SetItemSize($Tab1, 0, 30)
$TabSheet1 = GUICtrlCreateTabItem("TabSheet1")
$ListView1 = GUICtrlCreateListView("", 16, 49, 369, 185)
$TabSheet2 = GUICtrlCreateTabItem("TabSheet2")
$TabSheet2 = GUICtrlCreateTabItem("TabSheet3")
$TabSheet2 = GUICtrlCreateTabItem("TabSheet4")
$TabSheet2 = GUICtrlCreateTabItem("TabSheet5")
GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|