I have an owner list control in my windows program. I use CListCtrl :: GetBkColor to get the background color, and for the selected item I use GetSysColor (COLOR_HIGHLIGHT). This is consistent with what Windows uses for ownerless list controls, unless the control has no focus - then the background is grayed out.
Does Windows use one of the GetSysColor constants for the selected but unfocused background? If so, which one?
source
share