Share via


Gdi::Rectangle_I (Windows CE 5.0)

Send Feedback

This method draws a rectangle. The current pen outlines the rectangle and the current brush fills the rectangle.

static WINGDIAPI BOOL WINAPI Rectangle_I(HDChdc, intnLeftRect, intnTopRect, intnRightRect, intnBottomRect);

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

Gdi | Rectangle | Gdi::RoundRect_I

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.