# Function Reference

# _GUICtrlListView_HideColumn

Hides the column "sets column width to zero"

#include <GuiListView.au3>
_GUICtrlListView_HideColumn ( $hWnd, $iCol )

## Parameters

$hWnd | Control ID/Handle to the control
$iCol | Column to hide

## Return Value

Success: | True.
Failure: | False.

## Related

_GUICtrlListView_SetColumnWidth

## Example

    #include <GUIConstantsEx.au3>
    #include <GuiListView.au3>
    #include <MsgBoxConstants.au3>

    Example()

    Func Example()
        Local $idListview

        GUICreate("ListView Hide Column", 400, 300)
        $idListview = GUICtrlCreateListView("", 2, 2, 394, 268)
        GUISetState(@SW_SHOW)

        ; Add columns
        _GUICtrlListView_AddColumn($idListview, "Column 1", 100)
        _GUICtrlListView_AddColumn($idListview, "Column 2", 100)
        _GUICtrlListView_AddColumn($idListview, "Column 3", 100)

        MsgBox($MB_SYSTEMMODAL, "Information", "Hiding Column 2")
        MsgBox($MB_SYSTEMMODAL, "Information", "Column 2 Hid: " & _GUICtrlListView_HideColumn($idListview, 1))

        ; Loop until the user exits.
        Do
        Until GUIGetMsg() = $GUI_EVENT_CLOSE
        GUIDelete()
    EndFunc   ;==>Example