wordpad: Fixed quick print so that it doesn't print blank pages.
This commit is contained in:
parent
6a6c8e3ee2
commit
7aba35c608
|
@ -403,11 +403,12 @@ void get_default_printer_opts(void)
|
|||
devNames = pd.hDevNames;
|
||||
}
|
||||
|
||||
void print_quick(LPWSTR wszFileName)
|
||||
void print_quick(HWND hMainWnd, LPWSTR wszFileName)
|
||||
{
|
||||
PRINTDLGW pd;
|
||||
|
||||
ZeroMemory(&pd, sizeof(pd));
|
||||
pd.hwndOwner = hMainWnd;
|
||||
pd.hDC = make_dc();
|
||||
|
||||
print(&pd, wszFileName);
|
||||
|
|
|
@ -2098,7 +2098,7 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
|
|||
break;
|
||||
|
||||
case ID_PRINT_QUICK:
|
||||
print_quick(wszFileName);
|
||||
print_quick(hMainWnd, wszFileName);
|
||||
target_device(hMainWnd, wordWrap[reg_formatindex(fileFormat)]);
|
||||
break;
|
||||
|
||||
|
|
|
@ -217,7 +217,7 @@ LPWSTR file_basename(LPWSTR);
|
|||
void dialog_printsetup(HWND);
|
||||
void dialog_print(HWND, LPWSTR);
|
||||
void target_device(HWND, DWORD);
|
||||
void print_quick(LPWSTR);
|
||||
void print_quick(HWND, LPWSTR);
|
||||
LRESULT preview_command(HWND, WPARAM);
|
||||
void init_preview(HWND, LPWSTR);
|
||||
void close_preview(HWND);
|
||||
|
|
Loading…
Reference in New Issue