6680634: Printing: "Collate" is ignored under Windows Vista x64
Reviewed-by: campbell, prr
--- 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)) {