![]() The UI Automation framework has some support for virtual listviews. It should print 2 for a selected item and 0 for a non-selected item. #include $hListView = ControlGetHandle ( WinGetHandle ( "" ), "", "SysListView321" ) For $i = 0 To _GUICtrlListView _GetItemCount ( $hListView ) - 1 ConsoleWrite ( $i & ": " & _GUICtrlListView _GetItemState ( $hListView, $i, $LVIS_SELECTED ) & ) Next Code like this should be working (start Process Monitor in advance): This is necessary to be able to draw the dark blue background color for selected items. The selected state of an item is one of the few informations which is stored directly in the listview. But this requires that you have access to the data source. You have to manipulate the data source directly. ![]() In a virtual listview data isn't stored directly in the listview but in an underlying data source which is normally an array, a data structure, a file or a database.īecause data isn't stored in the listview many of the _GUICtrlListView_Get/Set functions are not working. ![]() You'll see that the LVS_OWNERDATA (0x1000) flag is set which means that it's a virtual listview. This can be verified by examining the listview style with the AutoIt Window Info tool. ![]() The problem is that this is a virtual listview. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |