Solved

MDI and print

Posted on 1999-01-13
2
190 Views
Last Modified: 2013-11-20
As I have a MDI application, I have several views for it, but none of them has a specific menu, they all are called by the main menu. I would like to print the view when they are active. How could I associate the print command to the active view?

0
Comment
Question by:mauling
2 Comments
 
LVL 31

Accepted Solution

by:
Zoppo earned 100 total points
ID: 1327649
Implement a command message handle for ID_FILE_PRINT within your view class (with ClassWizard).
In this handler function implement your code for printing the view.
If you have static splitter with different view classes, you must implement a ID_FILE_PRINT handler for each of your view classes.

hope that helps,

ZOPPO
0
 

Author Comment

by:mauling
ID: 1327650
But if there some way to print all the windows in the spliter window without selecting the window with mouse. Because when I have a spliter window it seems to the user that both of them are active.
And how could I print a formView implemented with dialog resource.


0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question