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.
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