How correctly to check up availability of a XP theme?
-
I have recently spent some time getting some of my apps looking right on XP styles, by adding a manifest resource, and also modifying some controls that are custom-drawn. However, if I use my xp-style-enabled controls in apps which do not have a manifest, and therefore draw using the old style, I find that my controls still draw with the current XP style. I have used
IsAppThemed()
as a way of determining how to draw my controls, but I have found that this returns TRUE even though the app is not XP-style-enabled, making the control look odd! I have tried usingIsThemeActive
but this also always returns TRUE. Does anyone know how I can find out if the app is XP-styled (ie the other controls are using the XP-styles)?Eugene Pustovoyt (ICQ UIN: 161325180) Soft and Hard Developer CPPMessageBox v1.0 CPPToolTip v2.1 CPPDumpCtrl v1.2 CPPHtmlStatic v1.2
-
I have recently spent some time getting some of my apps looking right on XP styles, by adding a manifest resource, and also modifying some controls that are custom-drawn. However, if I use my xp-style-enabled controls in apps which do not have a manifest, and therefore draw using the old style, I find that my controls still draw with the current XP style. I have used
IsAppThemed()
as a way of determining how to draw my controls, but I have found that this returns TRUE even though the app is not XP-style-enabled, making the control look odd! I have tried usingIsThemeActive
but this also always returns TRUE. Does anyone know how I can find out if the app is XP-styled (ie the other controls are using the XP-styles)?Eugene Pustovoyt (ICQ UIN: 161325180) Soft and Hard Developer CPPMessageBox v1.0 CPPToolTip v2.1 CPPDumpCtrl v1.2 CPPHtmlStatic v1.2
See this MSDN blog post[^]. I'm not really sure if this is of much help for you. But you may find some clues in the comments.
-
See this MSDN blog post[^]. I'm not really sure if this is of much help for you. But you may find some clues in the comments.
Thank you. I found an answer :)
Eugene Pustovoyt (ICQ UIN: 161325180) Soft and Hard Developer CPPMessageBox v1.0 CPPToolTip v2.1 CPPDumpCtrl v1.2 CPPHtmlStatic v1.2