Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than uxtheme, prefix the name with the module name and a period.
[DllImport("uxtheme", ExactSpelling=true, CharSet=CharSet.Unicode)]
public extern static Int32 GetThemeFilename(IntPtr hTheme, int iPartId, int iStateId, int iPropId, StringBuilder themeFileName, int themeFileNameLength);
VB .NET Signature:
Declare Auto Function GetThemeFilename Lib "uxtheme.dll" (hTheme as IntPtr, iPartId as Integer, iStateId as Integer, themeFileName as Integer, themeFileNameLength as Integer) As Integer
[in] Handle to a window's specified theme data. Use OpenThemeData to create an HTHEME.
[in] Value of type int that specifies the part that contains the filename property. See Parts and States.
[in] Value of type int that specifies the state of the part. See Parts and States.
[in] Value of type int that specifies the property to retrieve. May be one of the following values.
The filename of the image associated with this part and state, or the base filename for multiple images associated with this part and state.
The filename of the first scaled image associated with this part and state, for support of different resolutions.
The filename of the second scaled image.
The filename of the third scaled image.
The filename of the fourth scaled image.
The filename of the fifth scaled image.
The filename for the glyph image associated with this part and state.
[out] Pointer to a buffer that receives the retrieved file name.
[in] Value of type int that receives the maximum number of characters in the file name
Tips & Tricks:
You could use this to get the theme file name, change this style temporarily, and then set it back!
Please add some!
Alternative Managed API:
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).