
How to abort print preview?
Hi Marc,
You may want to customize the print preview window, and handle the close
toolbar button. Please check TN030 for more information:
TN030: Customizing Printing and Print Preview
http://www.*-*-*.com/
When performing a long time operation, it is important to keep the message
dispatched. Otherwise, the UI will dead and fail to response to user's
operations. For more information, please check the MSJ article below:
http://www.*-*-*.com/ ++0798.htm
Note: The URL may wrap.
Hope it helps.
Best Regards,
Leo Chen
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| Subject: How to abort print preview?
| Date: Wed, 9 Oct 2002 02:24:07 -0700
| Lines: 13
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcJvdZ3rRRVJcndrSUCPFwrW4vch6g==
| Newsgroups: microsoft.public.vc.mfc
| NNTP-Posting-Host: TKMSFTNGXA14 10.201.226.42
| Path: cpmsftngxa09!cpmsftngxa06
| Xref: cpmsftngxa09 microsoft.public.vc.mfc:350244
| X-Tomcat-NG: microsoft.public.vc.mfc
|
| I am searching for an option on how to abort the print
| preview of the MFC preview class.
| I need this, because the drawing of a page in my app can
| last very long. So the user should have an option to abort
| the drawing and close the preview window.
| I know it is possible to use the the CDC::QueryAbort
| method during printing. Can I use a simmilar technique
| during print preview?
| Since the drawing of a page is a multiple step process in
| my app it would be possible to query an abort procedure
| during preview.
|
| Thanks in advance
|