HighlightColor Listbox no focus Win

Hi,

I need to draw my own selection in a listbox.

On Mac I’m using this to get the selection color when ListBox is active and when it is not active:

#If TargetMacOS
if not Inactive then
dim c as NSColorMBS = NSColorMBS.alternateSelectedControlColor
return c.colorValue
else
dim c as NSColorMBS = NSColorMBS.secondarySelectedControlColor
return c.colorValue
end if
#endif

On Window I’m only familiar with the HighlightColor which works fine when the Listbox has focus.

How can I get the “not active listbox selection color” on Windows?

Have you looked at the Windows Functionality Suite?

https://github.com/arbp/WFS

Well, yes.

Could not find the proper color there either, then I looked at:

http://winapi.freetechsecrets.com/win32/WIN32GetSysColor.htm

and didn’t get any smarter.

Maybe that color not is defined but calculated by Win?