Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DRAWPATRECT structure

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.

ValueMeaning
0Black rectangle.
1White rectangle.
2Gray 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

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

Printing
Print Spooler API Structures
DRAWPATTERNRECT

 

 

Community Additions

ADD
Show:
© 2015 Microsoft