Themes

M

Merlin

Hi,

I've posted similiar before, but just can't find the answer, so here goes
again:-

Under XP themes, edit boxes and the like change their border colour to match
the theme, e.g. standard XP theme is a Blue colour, so edit boxes have a
blue border. How (an example please, please!) do I find this colour. I've
found many abstracts on applying themes but they all tend to be some C++
code that calls functions that override the painting with themed elements -
whereas I want to know the colours through code. I don't want to go down the
road of analysing existing pixel element colours on the screen to find what
other controls changed to.

Thanks,
Merlin
 
H

Herfried K. Wagner [MVP]

Merlin,

* "Merlin said:
Under XP themes, edit boxes and the like change their border colour to match
the theme, e.g. standard XP theme is a Blue colour, so edit boxes have a
blue border. How (an example please, please!) do I find this colour. I've
found many abstracts on applying themes but they all tend to be some C++
code that calls functions that override the painting with themed elements -
whereas I want to know the colours through code. I don't want to go down the
road of analysing existing pixel element colours on the screen to find what
other controls changed to.

Maybe you can base your implementation on this sample:

<http://www.google.de/[email protected]>
 
M

Merlin

Thanks Ken & Hertfried,

Hertfried the link you provided looks very promising - many thanks.

Regards,
Merlin
 
H

Herfried K. Wagner [MVP]

* "Merlin said:
Thanks Ken & Hertfried,

Hertfried the link you provided looks very promising - many thanks.

BTW: My name is "Herfried" (without any "t").
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top