Click to See Complete Forum and Search --> : Getting the view to print . . .


TraderBoy
October 3rd, 1999, 09:44 PM
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.

ChrisD
October 3rd, 1999, 11:24 PM
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