|
-
Feb 9th, 2003, 03:51 PM
#1
Thread Starter
Member
Windows XP Style
Hello!
Does someone know how to read out (on Windows XP, with Visual Basic 6) what Style is actually loaded on a Target PC. I need to know if it is Windows XP Style Blue, Green or Silver or if its Windows classical Style.
Thanks in Advance,
MyVar.
Last edited by Myvar; Feb 9th, 2003 at 04:14 PM.
-
Feb 9th, 2003, 04:37 PM
#2
Frenzied Member
Get ACTIVE SKIN or WindowBlinds
-
Feb 9th, 2003, 04:40 PM
#3
The picture isn't missing
Originally posted by mxnmx
Get ACTIVE SKIN or WindowBlinds
i think he just wants the name.
try the GetCurrentThemeName api call.
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
Feb 9th, 2003, 04:44 PM
#4
Frenzied Member
Sorry....To err is human...
-
Feb 9th, 2003, 05:37 PM
#5
Thread Starter
Member
Windows XP Style
Hello!
Yes, I only need to know if there is a Theme loaded. No need to change System Settings.
My API Viewer does not show me a Function with the specified Name.
I havent found the Deklaration for : GetCurrentThemeName.
What I have found about:
http://msdn.microsoft.com/library/de...tthemename.asp
But how call this Function in Visual Basic?
Any notions?
Thanks in Advance,
MyVar.
-
Feb 9th, 2003, 07:14 PM
#6
This is a VB translation of the function declaration. All strings passed must first be set to a specific size. You could for example use the Space function to make the strings hold a number of spaces (260 would probably be fine). This size must then be passed in the different size arguments. When the function returns simply strip of the NULL character at the end of each string.
VB Code:
Private Declare Function GetCurrentThemeName _
Lib "UxTheme.dll" ( _
ByVal pszThemeFileName As String, _
ByVal dwMaxNameChars As Integer, _
ByVal pszColorBuff As String, _
ByVal cchMaxColorChars As Integer, _
ByVal pszSizeBuff As String, _
ByVal cchMaxSizeChars As Integer) As Long
I haven't tested this since I'm currently not on a XP box.
Cheers,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|