Parazit Posted March 30, 2018 Share Posted March 30, 2018 HiHow can I get the color of only one element ListView? #include <GUIConstantsEx.au3> #include <GuiListView.au3> _Main() Func _Main() Local $aItem, $hListView GUICreate("ListView Получает атрибуты пункта", 400, 300) $hListView = GUICtrlCreateListView("Пункты", 2, 2, 394, 268, $LVS_EX_BORDERSELECT ) GUISetState() $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) Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>_Main Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now