Always show mouse cursor when printer selection dialog is shown. Previously the cursor was hidden when under GS/OS or when the mouse was "captured" via F8.

This commit is contained in:
Christopher Mason 2015-02-09 02:23:14 +00:00
parent 514a316566
commit 5cc387205e

View File

@ -202,6 +202,7 @@ Imagewriter::Imagewriter(Bit16u dpi, Bit16u paperSize, Bit16u bannerSize, char*
#if defined (WIN32) #if defined (WIN32)
// Show Print dialog to obtain a printer device context // Show Print dialog to obtain a printer device context
ShowCursor(1);
PRINTDLG pd; PRINTDLG pd;
pd.lStructSize = sizeof(PRINTDLG); pd.lStructSize = sizeof(PRINTDLG);
pd.hDevMode = (HANDLE) NULL; pd.hDevMode = (HANDLE) NULL;
@ -225,6 +226,7 @@ Imagewriter::Imagewriter(Bit16u dpi, Bit16u paperSize, Bit16u bannerSize, char*
PrintDlg(&pd); PrintDlg(&pd);
// TODO: what if user presses cancel? // TODO: what if user presses cancel?
printerDC = pd.hDC; printerDC = pd.hDC;
ShowCursor(0);
#endif // WIN32 #endif // WIN32
} }
} }