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.
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.
The return value is TRUE if the function was successful. Otherwise it is FALSE.
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.