Draws the theme-defined border within a specified rectangle.
Syntax
HRESULT DrawThemeBorder( HTHEME hTheme, HDC hdc, int iStateId, const RECT *pRect );
Parameters
- hTheme
- Handle to a window's specified theme data. Use OpenThemeData to create an HTHEME.
- hdc
- Handle to a device context.
- iStateId
- Integer that specifies the border type—for example, flat, raised, or lowered.
- pRect
- Pointer to a RECT structure that contains, in logical coordinates, the rectangle in which the border is drawn.
Return Value
Returns S_OK if successful, or an error value otherwise.
Function Information
Stock Implementation UxTheme.dll Custom Implementation No Header ThemeApi.h Import library UxTheme.lib Minimum operating systems Windows NT Whistler