Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function draws the specified text in the style of a status window with borders.

Syntax

void DrawStatusText(
  HDC 
hdc, 
  LPRECT 
lprc, 
  LPCWSTR 
pszText, 
  UINT 
uFlags 
);

Parameters

hdc

Handle to the display context for the window.

lprc

Long pointer to a RECTstructure that contains the position, in client coordinates, of the rectangle in which the text is drawn. The function draws the borders just inside the edges of the specified rectangle.

pszText

Pointer to a null-terminated string that specifies the text to display. Tab characters in the string determine whether the string is left-aligned, right-aligned, or centered.

uFlags

Text drawing flags. This parameter can be a combination of these values.

Value Description

SBT_NOBORDERS

Prevents borders from being drawn around the specified text.

SBT_POPOUT

Draws highlighted borders that make the text stand out.

SBT_RTLREADING

Displays text using right-to-left reading order on Hebrew or Arabic systems.

Return Value

None.

Requirements

Header commctrl.h
Library commctrl.lib
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

RECT