CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 1999
    Posts
    171

    Getting the view to print . . .

    I added a new view to my app (derived from CScrollView). I wrote stuff in OnDraw and screen looks fine. I thought I would automatically have printer code. The menu item PRINT is inactive. Isn't there some default printer behavior I can wire into? Thanks for your input.


  2. #2
    Join Date
    May 1999
    Posts
    667

    Re: Getting the view to print . . .

    Add the following entries in your message map

    ON_COMMAND(ID_FILE_PRINT, CScrollView::OnFilePrint)
    ON_COMMAND(ID_FILE_PRINT_DIRECT, CScrollView::OnFilePrint)
    ON_COMMAND(ID_FILE_PRINT_PREVIEW, CScrollView::OnFilePrintPreview)

    HTH,
    Chris



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