Function Reference

_GUICtrlListView_GetColumnCount

列の数を取得します。

#Include <GuiListView.au3>
_GUICtrlListView_GetColumnCount($hWnd)

 

パラメータ

$hWnd コントロールのハンドル

 

返し値

列の数を返します。

 

注意

なし。

 

関連

 


#AutoIt3Wrapper_au3check_parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#include <GuiConstantsEx.au3>
#include <GuiListView.au3>

Opt('MustDeclareVars', 1)

$Debug_LV = False ; ListView関数に渡されるClassNameを調べる。動作を確認するにはTrueを設定し、他のコントロールのハンドルを使用

_Main()

Func _Main()
    Local $hListView
   
    GUICreate("ListView Get Column Count", 400, 300)
    $hListView = GUICtrlCreateListView("col1|col2|col3", 2, 2, 394, 268)
    GUISetState()

    MsgBox(4160, "Information", "Column Count: " & _GUICtrlListView_GetColumnCount($hListView))

    ; ユーザーが終了するまでループ
    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE

    GUIDelete()
EndFunc   ;==>_Main