Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

MDI and print

Posted on 1999-01-13
2
Medium Priority
?
202 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 31

Accepted Solution

by:
Zoppo earned 400 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

670 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