Obtain Windows Appearance Settings?

BlitzMax Forums/BlitzMax Programming/Obtain Windows Appearance Settings?

xlsior(Posted 2007) [#1]
Is there a way to obtain the windows appearance settings programmatically?

I mean such things as:

- Message box font & size
- Menu color
- etc.

In particular, I'm trying to blend in a canvas with a MaxGUI window, but want to make sure that the background color I pick for the canvas is the same as whatever windows is configured to use.


Perturbatio(Posted 2007) [#2]
I would imagine that these could be obtained through the registry, take a look on MSDN.


xlsior(Posted 2007) [#3]
Yessss.... Managed to get the colors on my own. Not sure about fonts & sizes yet.



This sample will print the menu red, green and blue values, which are the same as the normal background panel. See the definitions at the top to find the other color items.

Aargh -- looks like the forum is messing up the code, adding mailto: references around the @ in the function declaration. Read source for fix.