Hello,
I need help in the following case:
I have a main GIU and 20 or more Childs. I want to put a ListView on each Child.
For generating the Childs and the ListViews I use a FOR NEXT.
The issue:
20 or more Childs will be created. But only 16 ListViews will be placed in the first 16 Childs.
I tried to reach the childs above the 16th instance with ControlMove to proof to have the right Handle. The Handle works.
So I suppose that _GUICtrlListView_Create(HWND, ..) doesnt manage HDNDs for Childs 16 + correct.
Does anyone has an Idea what is there the problem?
Greetings Andrew
_____code snippets below:
Creating Child=====================================
Local $modElem_window
Local $left_Next = 0
Local $title
For $i = 1 To 20
$modElem_window = 0
$title = String($i)
;~ If $i = 17 Then $title = -1
;~ If $i = 18 Then $title = -2
$modElem_window = GUICreate($title, 50, 300, $left_Next, 10, BitOr($WS_POPUP, $WS_BORDER))
GUICtrlSetResizing(-1, $GUI_DOCKALL)
GUISetBkColor(0x9900D1)
Creating List=====================================
Local $sHeaderText = "Done|CMD|RUN-Mode|ACK 2|ACK 1"
$List_CMDs_Modul_1 = _GUICtrlListView_Create($modElem_window, $sHeaderText, -1, -1, -1, -1)
_GUICtrlListView_SetExtendedListViewStyle($List_CMDs_Modul_1, BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT, $LVS_EX_INFOTIP, $LVS_EX_SUBITEMIMAGES, $LVS_EX_DOUBLEBUFFER)) ; $LVS_EX_SUBITEMIMAGES
GUICtrlSetResizing(-1, $GUI_DOCKALL)
_GUICtrlListView_SetColumnOrder($List_CMDs_Modul_1, "1|2|3|4|0")