Search the Community
Showing results for tags 'GetDlgCtrlID'.
Found 1 result
Hey, I've noticed that _GuiCtrlListView_DeleteAllItems is very slow. After some researches i found out that the function is only slow on native Controls (GuictrlListviewCreate) but very fast on _GuiCtrlListView_Create. To check whether it's a native control or not the function uses _WinAPI_GetDlgCtrlID. If the return of that function is true (not Zero) then its a native control. But when i use _GuiCtrlListView_Create the function _WinAPI_GetDlgCtrlID Returns allways 10000 for CtrlId. This is wrong, it shall return Zero. I use the latest AutoIt Version (18.104.22.168) and tested it also with the beta (.19). I use Win8.1 and tested it also with Win7, same result! Do you have the same issue? Is it a Bug or is it just me? Here is a code you can test with #include <GuiListView.au3> #include <WinAPI.au3> $hGui_Main = GUICreate("") $hListView1 = GUICtrlCreateListView("blegh",150,0) $hListView2 = _GUICtrlListView_Create($hGui_Main,"blegh",0,0) $hListView3 = _GUICtrlListView_Create($hGui_Main,"blegh",0,150) GUISetState() MsgBox(0,"",_WinAPI_GetDlgCtrlID(GUICtrlGetHandle($hListView1)));Returns 3 - this is correct! MsgBox(0,"_GUICtrlListView_Create",_WinAPI_GetDlgCtrlID($hListView2));Returns 10000 - this is wrong! MsgBox(0,"_GUICtrlListView_Create",_WinAPI_GetDlgCtrlID($hListView3));Returns 10001 - what the heck? Thanks in Advance, Spider