Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetThemeMargins
Collapse the table of content
Expand the table of content

GetThemeMargins function

Retrieves the value of a MARGINS property.

Syntax


HRESULT GetThemeMargins(
  _In_  HTHEME  hTheme,
  _In_  HDC     hdc,
  _In_  int     iPartId,
  _In_  int     iStateId,
  _In_  int     iPropId,
  _In_  LPRECT  prc,
  _Out_ MARGINS *pMargins
);

Parameters

hTheme [in]

Type: HTHEME

Handle to a window's specified theme data. Use OpenThemeData to create an HTHEME.

hdc [in]

Type: HDC

HDC to select fonts into. This parameter may be set to NULL.

iPartId [in]

Type: int

Value of type int that specifies the part that contains the MARGINS property. See Parts and States.

iStateId [in]

Type: int

Value of type int that specifies the state of the part. See Parts and States.

iPropId [in]

Type: int

Value of type int that specifies the property to retrieve. For a list of possible values, see Property Identifiers.

prc [in]

Type: LPRECT

Pointer to a RECT structure that contains the rectangle that specifies the area to be drawn into. This parameter may be set to NULL.

pMargins [out]

Type: MARGINS*

Pointer to a MARGINS structure that receives the retrieved value.

Return value

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Uxtheme.h

Library

UxTheme.lib

DLL

UxTheme.dll

See also

Property Identifiers

 

 

Community Additions

ADD
Show:
© 2015 Microsoft