I'm having a couple printing problems.
The first is a general question: why does using Regions to set the
clipping region seem to cause major problems? These include confusing
the MFC Print Preview architecture, and more importantly, causing a loss
of GDI Resources (which are not lost by the same code when drawing
to the screen).
The second problem concerns Print Preview. My drawing is large
enough to require logical coordinates > 32K, which are too large to
use in calls to SetViewportOrg and IntersectClipRgn. My solution has
been to use OffsetViewportOrg and OffsetClipRgn repeatedly until the
values are < 32K. This seems to work when printing, but not when
Previewing. For instance, if I Offset the clipping region down 5K,
the top 1/3 of the page shows empty, and it will draw below the bottom
of the page.
Does anyone have any info/answers to these problems? Any and all help
is greatly appreciated.