Results 1 to 6 of 6

Thread: Windows XP Style

  1. #1

    Thread Starter
    Member Myvar's Avatar
    Join Date
    Sep 2001
    Location
    Deutschland/Germany
    Posts
    34

    Question 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.

  2. #2
    Frenzied Member mxnmx's Avatar
    Join Date
    Dec 2001
    Location
    I'm back...now!!!
    Posts
    1,396
    Get ACTIVE SKIN or WindowBlinds
    Can't Remember Birthdays or Important Dates- Never Miss any Important Date(s)

  3. #3
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    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 .

  4. #4
    Frenzied Member mxnmx's Avatar
    Join Date
    Dec 2001
    Location
    I'm back...now!!!
    Posts
    1,396
    Sorry....To err is human...
    Can't Remember Birthdays or Important Dates- Never Miss any Important Date(s)

  5. #5

    Thread Starter
    Member Myvar's Avatar
    Join Date
    Sep 2001
    Location
    Deutschland/Germany
    Posts
    34

    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.

  6. #6
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    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:
    1. Private Declare Function GetCurrentThemeName _
    2.  Lib "UxTheme.dll" ( _
    3.  ByVal pszThemeFileName As String, _
    4.  ByVal dwMaxNameChars As Integer, _
    5.  ByVal pszColorBuff As String, _
    6.  ByVal cchMaxColorChars As Integer, _
    7.  ByVal pszSizeBuff As String, _
    8.  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
  •  



Click Here to Expand Forum to Full Width