Solved

MDI and print

Posted on 1999-01-13
2
196 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 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

636 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