Click to See Complete Forum and Search --> : Print Preview and CScrollView


Lee Ozer
May 14th, 1999, 05:14 PM
Hi Folks,

My application uses CScrollView and SetScaleToFitSize to display a high color image. The image is usually 800x600 but it shows up the size of a postage stamp in the Print Preview window. Does anyone know what I need to do to fix this?

--Thanks, Lee (ozer@ea.com)

Barry Neyer
May 15th, 1999, 09:35 AM
I believe the only way to do this is to set the scale that you want by using a command like

SetScrollSizes(MM_HIENGLISH, csViewSize);

where csViewSize is the size of your window, or in this case your page size.

May 17th, 1999, 03:08 PM
Setting the mapping mode with CScrollView::SetScrollSizes() may do the trick.
There's a tutorial on that in the SDK tutorials on th VC++ CDROM.
I'll be curious to know how the printing actually comes out... I've had trouble
getting what's in the print preview window to printout on the printer properly.
I'd really appreciate an email showing your print method if it does work.

Thanks in advance,
JP - (provoost@life.edu)