Themes

  • Thread starter Thread starter Merlin
  • Start date Start date
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
 
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]>
 
Thanks Ken & Hertfried,

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

Regards,
Merlin
 
* "Merlin said:
Thanks Ken & Hertfried,

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

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