Re: Problems Detecting if Themes are Active
From: Jeff Partch [MVP] (jeffp_at_mvps.org)
Date: 04/10/04
- Next message: Jase: "Re: How are you creating reports on file (viewable)?"
- Previous message: Jonathan Wood: "Problems Detecting if Themes are Active"
- In reply to: Jonathan Wood: "Problems Detecting if Themes are Active"
- Messages sorted by: [ date ] [ thread ]
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....
...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]
- Next message: Jase: "Re: How are you creating reports on file (viewable)?"
- Previous message: Jonathan Wood: "Problems Detecting if Themes are Active"
- In reply to: Jonathan Wood: "Problems Detecting if Themes are Active"
- Messages sorted by: [ date ] [ thread ]