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.
GetThemePartSize (uxtheme)
.
C# Signature:
[DllImport("uxtheme", ExactSpelling=true)]
public extern static Int32 GetThemePartSize(IntPtr hTheme, IntPtr hdc, WindowPart part, WindowPartState state, ref RECT pRect, ThemeSize eSize, out SIZE size);
public extern static Int32 GetThemePartSize(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, ref RECT pRect, ThemeSize eSize, out SIZE size);
[DllImport("uxtheme", ExactSpelling=true)]
public extern static Int32 GetThemePartSize(IntPtr hTheme, IntPtr hdc,WindowPart part, WindowPartState state, int pRect, ThemeSize eSize, out SIZE size);
public extern static Int32 GetThemePartSize(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, int pRect, ThemeSize eSize, out SIZE size);
VB .NET Signature:
Public Declare Function GetThemePartSize Lib "uxtheme.dll" (ByVal hTheme As IntPtr, ByVal hdc As IntPtr, ByVal iPartId As Integer, ByVal iStateId As Integer, ByRef prc As Rectangle, ByVal eSize As THEMESIZE, ByRef psz As Size) As Integer
// Help Button States
HBS_NORMAL = 1,
HBS_HOT = 2,
HBS_PUSHED = 3,
HBS_DISABLED = 4,
// Close Button States
CBS_NORMAL = 1,
CBS_HOT = 2,
CBS_PUSHED = 3,
CBS_DISABLED = 4
}
}
Notes:
None.
Tips & Tricks:
Please add some!
Sample Code:
Please add some!
Alternative Managed API:
TODO
TODO - a short description
3/20/2011 9:30:46 PM - -205.228.12.236
The RECT structure defines the coordinates of the upper-left and lower-right corners of a rectangle.
6/3/2013 5:41:04 PM - dahminator-75.174.65.168
TODO - a short description
3/16/2007 7:43:41 AM - 66.249.65.229
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).