DRAWPATRECT structure (wingdi.h)

The DRAWPATRECT structure defines a rectangle to be created.

Syntax

typedef struct _DRAWPATRECT {
  POINT ptPosition;
  POINT ptSize;
  WORD  wStyle;
  WORD  wPattern;
} DRAWPATRECT, *PDRAWPATRECT;

Members

ptPosition

The upper-left corner of the rectangle, in logical units.

ptSize

The lower-right corner of the rectangle, in logical units.

wStyle

The style of the rectangle. It can be one of the following.

Value Meaning
0 Black rectangle.
1 White rectangle.
2 Gray rectangle. Used with wPattern.

wPattern

Amount of grayness of the rectangle, as a percentage (0-100). A value of 0 means a white rectangle and 100 means a black rectangle. This is only used when wStyle is 2.

Remarks

This structure is used with the DRAWPATTERNRECT printer escape.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header wingdi.h (include Windows.h)

See also

DRAWPATTERNRECT

Print Spooler API Structures

Printing