Bug 628157, ensure focus is set on print dialogs, r=jimm,a=blocking
authorNeil Deakin <neil@mozilla.com>
Mon, 07 Feb 2011 09:46:31 -0500
changeset 62093 bf732d3308db9998c25d60e1ad509d45a788af7e
parent 62092 88952ceddd0552e04e594aca15c57b6bb44ed525
child 62094 8660345ea10e9ff7e173aae361a4dc6fcd7ad0e5
push id1
push userroot
push dateTue, 10 Dec 2013 15:46:25 +0000
reviewersjimm, blocking
bugs628157
milestone2.0b12pre
Bug 628157, ensure focus is set on print dialogs, r=jimm,a=blocking
embedding/components/printingui/src/win/nsPrintDialogUtil.cpp
--- a/embedding/components/printingui/src/win/nsPrintDialogUtil.cpp
+++ b/embedding/components/printingui/src/win/nsPrintDialogUtil.cpp
@@ -723,16 +723,17 @@ static UINT CALLBACK PrintHookProc(HWND 
     ::SetWindowPos(cancelWnd, NULL, cancelRect.left, dlgHgt-bottomGap-cancelHgt, 0, 0, 
                    SWP_NOSIZE|SWP_NOREDRAW|SWP_NOZORDER);
 
     // localize and initialize the groupbox and radiobuttons
     InitializeExtendedDialog(hdlg, howToEnableFrameUI);
 
     // Looks like we were able to extend the dialog
     gDialogWasExtended = PR_TRUE;
+    return TRUE;
   }
   return 0L;
 }
 
 //----------------------------------------------------------------------------------
 // Returns a Global Moveable Memory Handle to a DevMode
 // from the Printer by the name of aPrintName
 //
@@ -1174,16 +1175,17 @@ static BOOL APIENTRY PropSheetCallBack(H
       return 0L;
     }
 
     // localize and initialize the groupbox and radiobuttons
     InitializeExtendedDialog(hdlg, howToEnableFrameUI);
 
     // Looks like we were able to extend the dialog
     gDialogWasExtended = PR_TRUE;
+    return TRUE;
   }
   return 0L;
 }
 
 //------------------------------------------------------------------
 // Creates the "Options" Property Sheet
 static HPROPSHEETPAGE ExtendPrintDialog(HWND aHWnd, char* aTitle)
 {