RectVisible

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

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

Parameters

hdc

Identifies the device context.

lprc

Points to a RECT structure that contains the logical coordinates of the specified rectangle. The RECT structure has the following form:

typedef struct tagRECT { /* rc */

LONG left;

LONG top;

LONG right;

LONG bottom;

} RECT;

Return Value

The return value is TRUE if some portion of the given rectangle lies within the clipping region. Otherwise it is FALSE.

See Also

CreateRectRgn, PtVisible, RECT, SelectClipRgn