Hi guys,
In fact I am not the question owner, it's my brother's and I will put as he asked me to: where should we put in the source code LISTVIEW_SETBKCOLOR macro? he says he tried to put in many places but with no result?
Could you help,
Thank you.
Printable View
Hi guys,
In fact I am not the question owner, it's my brother's and I will put as he asked me to: where should we put in the source code LISTVIEW_SETBKCOLOR macro? he says he tried to put in many places but with no result?
Could you help,
Thank you.
MSDN says this about it:
...the best place to use it is just after it has been shown.Code:ListView_SetBkColor
Sets the background color of a list view control. You can use this macro or send the LVM_SETBKCOLOR message explicitly.
BOOL ListView_SetBkColor(
HWND hwnd,
COLORREF clrBk
);
Parameters
hwnd
Handle to the list view control.
clrBk
Background color to set or the CLR_NONE value for no background color. List view controls with background colors redraw themselves significantly faster than those without background colors.
I gave the code you provided to my brother, but unfortunately it did not work, he says:
* He uses a resource in which this listview resides.
* He put the function ONWM_SHOWINDOW event.
* It always works for 1 second, and then returns to the
traditional white background quickly.
* That's why he thinks that the place where this function
had been put is incorrect (in his view point?).
* Could you provide me with small working source code?
Thank you,