int get_clip_box(handle device, rectangle* clip)
This function obtains the dimensions of the bounding rectangle of the current visible area of the device.
The handle of the device context whose clipping box is being queried.
A pointer to a rectangle to receive the dimensions (in logical units) of the clipping box.
|The region is empty.
|The region is a single rectangle.
|The region is more than one rectangle.
|An error occurred.
The visible area is defined by the clipping region or clipping path (with overlapping windows being taken into account).