AcidUser,
Yes. The DllCall returns the BGR value of the colour - we need to convert it to RGB like this:
Global $aRet = DllCall("User32.dll", "int", "GetSysColor", "int", $COLOR_HIGHLIGHT)
$iColor = Hex($aRet[0], 6)
Global $iToast_Header_BkCol = '0x' & StringMid($iColor, 5, 2) & StringMid($iColor, 3, 2) & StringMid($iColor, 1, 2)
And something similar for the other call. Now you will get the proper colour.
Thanks for pointing it out - I may have to amend the UDF now!
M23
Edit: The plot thickens - it seems the DLLCall should return the RGB colour. I will explore further tomorrow.