Karen wrote:

I am writing an XPlatform Custom control... and want it to look right under XP and just found out that buttons can be set to appear like Win2K ones in XP by either setting the over all classic theme or under appearance setting buttons and Windows to Windows Classic Style...

In XP how can I detect if classic or XP style buttons should be used?

I looked in the Windows Functionality Suite but if it's there I missed it.


Hi Karen,

It looks like there are declares needed to do what you want to do. I've never worked with themes before, but this is my best guess as to how you might go about it:

<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/userex/functions/setwindowtheme.asp>

Call IsAppThemed
Call IsThemeActive
If those are true, call OpenThemeData or OpenThemeDataEx and examine the result.

Honestly I didn't spend too much time looking at it. Sorry. Running a bit short as of late.

You could probably use code from the WFS as a guideline if you choose to port these calls.

hth,

Brian
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to