Re: Problems Detecting if Themes are Active

From: Jeff Partch [MVP] (jeffp_at_mvps.org)
Date: 04/10/04


Date: Fri, 9 Apr 2004 20:02:07 -0500


"Jonathan Wood" <jwood@softcircuits.com> wrote in message
news:%23obNuYpHEHA.3376@TK2MSFTNGP09.phx.gbl...
> Does anyone know why the following code has problems. I'm trying to take
> action only if the current appliction is themed. I tried the version below
> and also the one commented out that used IsAppThemed. In both cases, the
> functions (IsAppThemed and IsThemeActive) return true and my inner
condition
> executes even when I am not including my application's manifest.

Jonathan,

There was some discussion about this a while back, and I thought then that
Don Quixote's discussion of these functions sounded pretty good....

http://www.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&frame=right&th=94f8a1401a9b6c91&seekm=erwa42ipCHA.2284%40tk2msftngp13#link2

...I have no idea what the right way to discern this is, so I'm just
thinking out loud, but would using GetClassLongPtr/GCLP_HMODULE on a known
User32 control (BUTTON, EDIT, LISTBOX, etc) and comparing it for equality
with the GetModuleHandle(_T("ComCtl32.dll")) work?

-- 
Jeff Partch [VC++ MVP]