# Function Reference

# _GUICtrlListBox_EndUpdate

Enables screen repainting that was turned off with the BeginUpdate function

#include <GuiListBox.au3>
_GUICtrlListBox_EndUpdate ( $hWnd )

## Parameters

$hWnd | Control ID/Handle to the control

## Return Value

Success: | True.
Failure: | False.

## Related

_GUICtrlListBox_BeginUpdate

## Example

    #include <DirConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <GuiListBox.au3>

    Example()

    Func Example()
        Local $idListBox

        ; Create GUI
        GUICreate("List Box End Update", 400, 296)
        $idListBox = GUICtrlCreateList("", 2, 2, 396, 296)
        GUISetState(@SW_SHOW)

        ; Add files
        _GUICtrlListBox_BeginUpdate($idListBox)
        _GUICtrlListBox_ResetContent($idListBox)
        _GUICtrlListBox_InitStorage($idListBox, 100, 4096)
        _GUICtrlListBox_Dir($idListBox, @WindowsDir & "\win*.exe")
        _GUICtrlListBox_AddFile($idListBox, @WindowsDir & "\notepad.exe")
        _GUICtrlListBox_Dir($idListBox, "", $DDL_DRIVES)
        _GUICtrlListBox_Dir($idListBox, "", $DDL_DRIVES, False)
        _GUICtrlListBox_EndUpdate($idListBox)

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