Bug #546

Exception in PrinterJob::Execute0() when called from a bar in a control

Added by Iñaki Zabala about 8 years ago. Updated almost 8 years ago.

Status:ApprovedStart date:10/22/2013
Priority:NormalDue date:
Assignee:Miroslav Fidler% Done:

0%

Category:CtrlLibSpent time:-
Target version:-

Description

Hello

CtrlLib/PrinterJob.cpp, function PrinterJob::Execute0() line 74, bool b = PrintDlg(&dlg);, raises an exception when called from a RichEdit::DefaultBar() print button if it is attached to a StaticRect instead of a TopWindow.

A simple solution is to set in PrinterJob::Execute0(), line 61,

dlg.hwndOwner = 0;

instead of

dlg.hwndOwner = GetActiveWindow();

Capt.JPG (28.2 KB) Iñaki Zabala, 10/22/2013 05:45 PM

History

#1 Updated by Miroslav Fidler almost 8 years ago

  • Status changed from New to Approved

Also available in: Atom PDF