Jump to content
Sign in to follow this  

Get color only one element ListView.

Recommended Posts



How can I get the color of only one element ListView?


#include <GUIConstantsEx.au3>
#include <GuiListView.au3>
Func _Main()
    Local $aItem, $hListView
    GUICreate("ListView Получает атрибуты пункта", 400, 300)
    $hListView = GUICtrlCreateListView("Пункты", 2, 2, 394, 268, $LVS_EX_BORDERSELECT )
   $q = GUICtrlCreateListViewItem("Строка 1", $hListView)
GUICtrlSetColor(-1, 0xFE81B9)
   $b = GUICtrlCreateListViewItem("Строка 2", $hListView)
GUICtrlSetColor(-1, 0x6481B9)
   $c = GUICtrlCreateListViewItem("Строка 3", $hListView)
GUICtrlSetColor(-1, 0x64A483)
; $a = PixelGetColor(, )
$a = _GUICtrlListView_GetTextColor($q)
; _GUICtrlListView_SetTextColor($hListView, 0x64A483)
; $a = _GUICtrlListView_GetOriginY($hWnd)

MsgBox(0, '', $a)

    Until GUIGetMsg() = $GUI_EVENT_CLOSE
EndFunc   ;==>_Main


Share this post

Link to post
Share on other sites

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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.