aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/print_mswin.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2003-11-11 13:59:53 +0000
committerUlf Lamping <ulf.lamping@web.de>2003-11-11 13:59:53 +0000
commit27c8d04949500407011bf834fb00221bfedb83db (patch)
treeed450413bc2025235bbe36a8d2e7b96b723f51bd /gtk/print_mswin.c
parent979a02bbfa04ecfc0247478b85d66ff7cb66fc33 (diff)
downloadwireshark-27c8d04949500407011bf834fb00221bfedb83db.tar.gz
wireshark-27c8d04949500407011bf834fb00221bfedb83db.tar.bz2
wireshark-27c8d04949500407011bf834fb00221bfedb83db.zip
added some print dialog flags, to disable some unsupported print features
(e.g. selection of pages from X to Y) svn path=/trunk/; revision=8938
Diffstat (limited to 'gtk/print_mswin.c')
-rw-r--r--gtk/print_mswin.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/gtk/print_mswin.c b/gtk/print_mswin.c
index 46b357cff8..9cd86eae06 100644
--- a/gtk/print_mswin.c
+++ b/gtk/print_mswin.c
@@ -1,7 +1,7 @@
/* print_mswin.c
* Printing support for MSWindows
*
- * $Id: print_mswin.c,v 1.6 2003/10/07 03:09:50 guy Exp $
+ * $Id: print_mswin.c,v 1.7 2003/11/11 13:59:53 ulfl Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -94,7 +94,15 @@ void print_mswin(char *file_name)
memset( &pdlg, 0, sizeof( PRINTDLG ) );
pdlg.lStructSize = sizeof( PRINTDLG );
/* Set the flag to return printer DC. */
- pdlg.Flags = PD_RETURNDC;
+ pdlg.Flags =
+ /* return the device context we need */
+ PD_RETURNDC |
+ /* disable the "Pages" radio button */
+ PD_NOPAGENUMS |
+ /* disable the "Selection" radio button */
+ PD_NOSELECTION |
+ /* let device print multiple pages (if requested) */
+ PD_USEDEVMODECOPIESANDCOLLATE;
/* Invoke the printer dialog box. */
PrintDlg( &pdlg );