realbasic-nug
[Top] [All Lists]

Re: Which WinXP Theme is in use?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Which WinXP Theme is in use?
From: Aaron Ballman <aaron at realsoftware dot com>
Date: Wed, 31 Aug 2005 13:19:11 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <9BDE5B1B-0A08-4E07-88DD-FB7DB2894E28 at stretchedout dot com> <4315E47D dot 1070009 at realsoftware dot com> <371BD574-D2DD-4773-A308-FF7AC4192D63 at stretchedout dot com>
Thanks Aaron... can you think of any reason that GetCurrentThemeName would return three empty strings? Looks like the code should work but.....

Off the cuff --

1) uxtheme is not installed in the usual spot
2) No theme is active, perhaps
3) You're not running a themed version of Windows
4) All three fields are too short to hold the entire string
5) Gremlins

Try putting this after the call to GetCurrentThemeName:

Declare Function GetLastError Lib "kernel32" () as Integer
MsgBox Str( GetLastError )

And report what it has to say.

~Aaron
_______________________________________________
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>

<Prev in Thread] Current Thread [Next in Thread>