Draws a theme-defined line within a specified rectangle.
Syntax
HRESULT DrawThemeLine( HTHEME hTheme, HDC hdc, int iStateId, const RECT *pRect, DWORD dwDtlFlags );
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 line type—for example, flat, raised, or lowered.
- pRect
- Pointer to a RECT structure that contains, in logical coordinates, the rectangle in which the line is drawn.
- dwDtlFlags
- DWORD that contains the flags indicating where the line is drawn. The parameter value may be one or more of the following:
- DTL_LEFT
- Line is drawn on the left side of the rectangle specified by pRect.
- DTL_TOP
- Line is drawn at the top of the rectangle specified by pRect.
- DTL_RIGHT
- Line is drawn on the right side of the rectangle specified by pRect.
- DTL_BOTTOM
- Line is drawn at the bottom of the rectangle specified by pRect.
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