Gdi::Rectangle_I
This method draws a rectangle. The current pen outlines the rectangle and the current brush fills the rectangle.
static WINGDIAPI BOOL WINAPI Rectangle_I(
HDC hdc,
int nLeftRect,
int nTopRect,
int nRightRect,
int nBottomRect
);
Parameters
- hdc
[in] Handle to the device context. - nLeftRect
[in] Integer that specifies the logical x-coordinate of the upper-left corner of the rectangle. - nTopRect
[in] Integer that specifies the logical y-coordinate of the upper-left corner of the rectangle. - nRightRect
[in] Integer that specifies width of the rectangle. - nBottomRect
[in] Integer that specifies height of the rectangle.
Return Values
Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.
Remarks
This method is an internal version of the Rectangle function.
Gdi::Rectangle_I neither uses nor updates the current position. Gdi::Rectangle_I does not draw the extreme bottom and right edges of rectangle because the bottom and right coordinates are treated as the width and height respectively of the rectangle instead of as the edges of the rectangle.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Gdi.hpp.
See Also
Last updated on Wednesday, April 13, 2005
© 2005 Microsoft Corporation. All rights reserved.