Preview and Clipping Regions Coordinates
Posted on 1997-10-03
I'm using regions for clipping graphics in printouts like:
CRgn rgn; ... pDC->SelectClipRgn(&rgn);
This works fine only for the real print, not for the screen-preview. It seems that SelectClipRgn needs the real screen-coordinates instead of the printer-coordinates for correct clipping in preview-mode ?!
How can I transform the preview printer coordinates in real screen-coordinates? This should also be usefull for calculating the paper position for mouse clicks on the preview screen.. Thorsten
BTW: ScreenToClient and ClientToScreen doesn't solve the problem?!