GetThemeSysSize function
Retrieves the value of a system size metric from theme data.
Syntax
int GetThemeSysSize( _In_ HTHEME hTheme, _In_ int iSizeID );
Parameters
- hTheme [in]
-
Type: HTHEME
Handle to theme data.
- iSizeID [in]
-
Type: int
Value of type int that specifies the system size metric desired. The following values are valid:
Return value
Type: int
Returns the size in pixels.
Remarks
If hTheme is not NULL, this function returns the size stored in the current visual style (SysMetrics section of the visual style) scaled to the current screen dpi. If hTheme is NULL, this function returns the global system metric in pixels that is scaled to the current dpi only if the application is marked as dpi-aware; otherwise, the pixels returned are unscaled.
Requirements
|
Minimum supported client | Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2003 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
Send comments about this topic to Microsoft
Build date: 10/27/2012