What color should I use to manage the list of owner list controls?

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?

+5
source share
2 answers

COLOR_INACTIVECAPTION (3) I think.

: , , COLOR_BTNFACE (15).

+6

, . , , SystemColors.Control .Net, ++ COLOR_3DFACE

COLOR_BTNFACE, COLOR_MENU COLOR_MENUBAR Windows .

+1

All Articles