hi, does any one know how to change the background color of a listview control in api..i have been searching for hours and found nothing, thanks
This is a discussion on Setting a listview's color within the Windows Programming forums, part of the Platform Specific Boards category; hi, does any one know how to change the background color of a listview control in api..i have been searching ...
hi, does any one know how to change the background color of a listview control in api..i have been searching for hours and found nothing, thanks
An excerpt from MSDN:
ListView.setBackColor
Sets the background color for the list view control.
Syntax
public void setBackColor( Color value )
Parameters
value
A Color object that represents the background color for the list view control. The default value is the system window color.
hope it helps
thanks, i found a way to do it
for backbackgroundCode:SendMessage(hwndList, LVM_SETBKCOLOR, 0, RGB(0,0,0));
and
for textCode:SendMessage(hwndList, LVM_SETTEXTCOLOR, 0, RGB(255,255,255));