Utility library rc_intersect() rc_clip_off()
Programming guideline of WinDom

rc_clip_on()

int rc_clip_on ( GRECT *clip);

Set the GEM clipping on. This function should be never used inside redraw function or userdraw function. After the call, coordinates of clipped area are readable in the clip variable. See also rc_clip_off().