|
发表于 2010-8-8 16:22:30
|
显示全部楼层
请看注解部分:
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Include <GuiListView.au3>
Local $hParent,$hwnd
$oIE = ObjCreate("Shell.Explorer.2")
$hParent=GUICreate("Embedded Web control Test", 640, 480, (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS, $WS_CLIPCHILDREN))
$GUIActiveX = GUICtrlCreateObj ($oIE, 10, 40, 600, 360)
GUISetState()
$oIE.navigate("D:\tools\单机游戏")
;=========
;显示方式排列
;=========
$hwnd = ControlGetHandle($hParent, "", "SysListView321")
$flags = 0 ;按所需更改值,范围为0-4
Switch $flags
Case 0
_GUICtrlListView_SetColumnWidth($hwnd,0,400)
_GUICtrlListView_SetView($hwnd, 0)
Case 1
_GUICtrlListView_SetView($hwnd, 1)
Case 2
_GUICtrlListView_SetView($hwnd, 2)
Case 3
_GUICtrlListView_SetView($hwnd, 3)
Case 4
_GUICtrlListView_SetView($hwnd, 4)
EndSwitch
;========
;结束
;========
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
EndSelect
WEnd
GUIDelete() |
评分
-
查看全部评分
|