Jump to content

Recommended Posts

Posted (edited)

How to avoid this bug?

#include <GuiConstantsEx.au3>
#Include <WinAPI.au3>

Opt("GUIResizeMode", $GUI_DOCKALL)

$Form = GUICreate("Form", 300, 300, 0, 0)
GUISetState()

$hListView = GUICtrlCreateListView("ListView", 8, 8, 10, 10)

Sleep(1000)

; --------------- Resizing Listview ------------------
;ControlMove($Form, "", $hListView, 8, 8, 200, 200)
;_WinAPI_MoveWindow(GUICtrlGetHandle($hListView), 8, 8, 200, 200)
WinMove(GUICtrlGetHandle($hListView), "", 8, 8, 200, 200)
; ----------------------------------------------------

Sleep(1000)

; ------- Resizing Form  -----------
WinMove($Form, "", 0, 0, 600, 600)
;_WinAPI_MoveWindow(HWnd($Form), 0, 0, 600, 600, False)
; ----------------------------------

; After WinMove sizes of ListView returned to the initial values

Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
Edited by hunt

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...