Bug #546
Exception in PrinterJob::Execute0() when called from a bar in a control
| Status: | Approved | Start date: | 10/22/2013 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | Miroslav Fidler | % Done: | 0% | |
| Category: | CtrlLib | Spent 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();
History
#1 Updated by Miroslav Fidler almost 12 years ago
- Status changed from New to Approved