Re: Owner Draw STATIC Window with XP Themes

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Jonathan Wood (jwood_at_softcircuits.com)
Date: 11/11/04


Date: Thu, 11 Nov 2004 09:26:07 -0700

Doug,

> It's essential that transparent child controls use
> DrawThemeParentBackground.

Right, that just wasn't my situation.

But thanks to your suggestions and some other code I found on the Web,
DrawThemeBackground did in fact turn out to be what I needed. Along with
OpenThemeData, I think I have a reliable approach that will work on older
versions of Windows.

In fact, DrawThemeBackground can be used to draw themed buttons as well,
which was another thing I was trying to solve. So I'm well on my way.

Your code looks interesting, I'll have to look into the transparent approach
sometime.

Thanks.

-- 
Jonathan Wood
SoftCircuits
http://www.softcircuits.com
Available for consulting: http://www.softcircuits.com/jwood/resume.htm

Quantcast