Allow printing objects to be passed a wxWindow, not a wxFrame
(vestigial remains of older wxWin version) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -503,7 +503,7 @@ BEGIN_EVENT_TABLE(wxPreviewFrame, wxFrame)
|
||||
EVT_CLOSE(wxPreviewFrame::OnCloseWindow)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
wxPreviewFrame::wxPreviewFrame(wxPrintPreviewBase *preview, wxFrame *parent, const wxString& title,
|
||||
wxPreviewFrame::wxPreviewFrame(wxPrintPreviewBase *preview, wxWindow *parent, const wxString& title,
|
||||
const wxPoint& pos, const wxSize& size, long style, const wxString& name):
|
||||
wxFrame(parent, -1, title, pos, size, style, name)
|
||||
{
|
||||
@@ -511,7 +511,7 @@ wxFrame(parent, -1, title, pos, size, style, name)
|
||||
m_controlBar = NULL;
|
||||
m_previewCanvas = NULL;
|
||||
|
||||
// Looks silly on Windows with a standard Windows icon
|
||||
// Give the application icon
|
||||
#ifdef __WXMSW__
|
||||
wxFrame* topFrame = wxDynamicCast(wxTheApp->GetTopWindow(), wxFrame);
|
||||
if (topFrame)
|
||||
|
Reference in New Issue
Block a user