Partager via


Gdi::GetClipBox_I (Windows Embedded CE 6.0)

1/6/2010

This method retrieves the dimensions of the tightest bounding rectangle that can be drawn around the current visible area on the device. The visible area is defined by the current clipping region as well as any overlapping windows.

Syntax

static WINGDIAPI int WINAPI GetClipBox_I(
  HDC hdc,
  RECT* lprc
);

Parameters

  • hdc
    [in] Handle to the device context.
  • lprc
    [out] Long pointer to a RECT structure that is to receive the rectangle dimensions.

Return Value

The return value specifies the complexity of the clipping box.

NULLREGION indicates that the region is empty.

SIMPLEREGION indicates that the region is a single rectangle.

COMPLEXREGION indicates that the region is more than one rectangle.

ERROR indicates that an error occurred.

To get extended error information, call GetLastError.

Remarks

This method is an internal version of the GetClipBox function.

Gdi::GetClipBox_I returns logical coordinates based on the specified device context.

Requirements

Header gdi.hpp
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Gdi
GetClipBox
RECT