April 19, 2024, 12:46:29 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


GetSysColors

Started by Brian, July 18, 2019, 07:48:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Brian

July 18, 2019, 07:48:35 AM Last Edit: July 18, 2019, 08:46:31 AM by Brian
Hello,

I was looking at GetSysColors, and trying to determine which colour I wanted. I thought it would be easiest to put them all together in one program

The MS API call GetSysColors(number) run from 0 to 30. If a call returns a value that is not usable, ie, GetSysColors(8), it returns 0, which is black, and still a valid RGB colour

Some values return the same colour. It was easier to put 0 to 30 in a loop, rather than sift out the values that don't do anything

No includes needed - should just compile as is

Brian

PS: Doesn't like 8 in parenths, it seems!