Jump to content

Get color only one element ListView.


Parazit
 Share

Recommended Posts

Hi

How 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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...