6680634: Printing: "Collate" is ignored under Windows Vista x64
authorjgodinez
Fri, 16 Oct 2009 09:32:29 -0700
changeset 4246 e2b24661047a
parent 4245 8adbd99d7b8f
child 4247 8112127c60be
6680634: Printing: "Collate" is ignored under Windows Vista x64 Reviewed-by: campbell, prr
jdk/src/windows/native/sun/windows/awt_PrintControl.cpp
--- a/jdk/src/windows/native/sun/windows/awt_PrintControl.cpp	Wed Oct 14 10:44:32 2009 -0700
+++ b/jdk/src/windows/native/sun/windows/awt_PrintControl.cpp	Fri Oct 16 09:32:29 2009 -0700
@@ -687,7 +687,7 @@
     // Now, set-up the struct for the real calls to ::PrintDlg and ::CreateDC
 
     pd.hwndOwner = hwndOwner;
-    pd.Flags = PD_ENABLEPRINTHOOK | PD_RETURNDC;
+    pd.Flags = PD_ENABLEPRINTHOOK | PD_RETURNDC | PD_USEDEVMODECOPIESANDCOLLATE;
     pd.lpfnPrintHook = (LPPRINTHOOKPROC)PrintDlgHook;
 
     if (env->CallBooleanMethod(printCtrl, AwtPrintControl::getCollateID)) {