DrawThemeBorder Function


This is preliminary documentation and is subject to change.

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 ImplementationUxTheme.dll
Custom ImplementationNo
HeaderThemeApi.h
Import libraryUxTheme.lib
Minimum operating systems Windows NT Whistler


© 2000 Microsoft Corporation. All rights reserved. Terms of use.