Bug #546

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

Added by Iñaki Zabala over 10 years ago. Updated over 10 years ago.

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


Category:CtrlLibSpent time:-
Target version:-



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


#1 Updated by Miroslav Fidler over 10 years ago

  • Status changed from New to Approved

Also available in: Atom PDF