RectVisible

The RectVisible function determines whether any part of the specified rectangle lies within the clipping region of a device context.

BOOL RectVisible(

HDC hdc, // handle of the device context
CONST RECT *lprc // address of rectangle structure
);  

Parameters

hdc

Identifies the device context.

lprc

Points to a RECT structure that contains the logical coordinates of the specified rectangle.

Return Values

If some portion of the specified rectangle lies within the clipping region, the return value is nonzero.

If no portion of the specified rectangle lies within the clipping region, the return value is zero.

See Also

CreateRectRgn, PtVisible, RECT, SelectClipRgn