CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Location
    CA
    Posts
    6

    Print Preview and CScrollView

    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 ([email protected])


  2. #2
    Join Date
    May 1999
    Posts
    6

    Re: Print Preview and CScrollView

    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.



  3. #3
    Guest

    Re: Print Preview and CScrollView

    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 - ([email protected])


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured