GetClipRgn

  int GetClipRgn(hdc, hrgn)    
  HDC hdc; /* handle of device context */
  HRGN hrgn; /* handle of region */

The GetClipRgn function retrieves a handle identifying the current clip-region for the specificed device context.

Parameters

hdc

Identifies the device context.

hrgn

Identifies an existing region before the function executes. Identifies a copy of the current clip-region after the function executes.

Return Value

The return value is TRUE if the function was successful. Otherwise it is FALSE.

Comment

If the function executes successfully, hrgn identifies a copy of the current clip region. Subsequent changes to this copy will not affect the current clipping region.