Hello,
i got listview control, i initalize background color at the begining in wm_create...that works, then i made some dialog in which you can change colors of this control background,
i send message LVM_SETBKCOLOR and appropriate color as lParam SendMessage(hListControl, LVM_SETBKCOLOR, 0, RGB(23,123,123)), nothing happens, but when i minimize and then maximize my app, colors appear as they should, i thought i must send wm_paint to the control but nothing happened, i even send wm_paint to the main window and nothing happens too...how can i update that controls background and that it will change colors right away?
thank you
Sending WM_PAINT would achieve nothing: there is no invalid rectangle on the listview control. You have to invalidate the client area of the listview control first by calling InvalidateRect
thank you, it works like it never worked before:)