LVM_GETBKCOLOR

This message gets the background colour of a List-View control.

hWnd window handle of List-View control
uMsg LVM_GETBKCOLOR (0x1000)
wParam ignored
lParam ignored
returns the background colour as a COLORREF;
with CLR_NONE (0xFFFFFFFF) meaning no background colour

Behaviour

In COMCTL32 versions 6.10 and higher, the LVM_GETBKCOLOR message returns the indirect result of the GetBackgroundColor method of the List-View control’s IListView interface (ignoring whether the method succeeds or fails).

Early Implementations

There is no IListView interface in earlier versions, but the message behaves for all practical purposes as if for version 6.10. Refer to the notes on the relevant method of the interface.

Versions before 6.10 do not defend against this message being received before the control has yet received a WM_CREATE message or after it has already received a WM_DESTROY message.

Availability

The LVM_GETBKCOLOR message is supported by COMCTL32 versions 3.50 and higher.