Hello again fellow programmers,
Got a question. Does anyone have any good references on printing a document using MFC. I know that MFC is not very favorable among a lot of people. I have an app that I am using to display images. The app was written using MFC. I have made many modifications to it such as view sizes and such. I have researched everywhere and have tried everything I can think of to implement printing using the CView::OnFilePrint function. When I add an MFC class to the project using CView as the base class, and then add "ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)", my print option in the window is grayed out and cannot be used. On the other hand, adding "ON_COMMAND(ID_FILE_PRINT, CWinApp::OnFilePrintSetup)" to the Message Map of the class that handles the open option that has the base class CWinApp..............the print option is available and opens the printer options dialog. Of course it does not do anything. What am I missing here? I know there is something. I will follow any leads. Any help will be appreciated.
Sincerely Grateful,
Kendal



LinkBack URL
About LinkBacks


