X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f5419957e5794f2d10f4e125f77b2c2e2cd222d6..da61ab3189f71a2b0913bac13c48755c5d038037:/include/wx/prntbase.h diff --git a/include/wx/prntbase.h b/include/wx/prntbase.h index f484b7a925..73a1b410a7 100644 --- a/include/wx/prntbase.h +++ b/include/wx/prntbase.h @@ -173,7 +173,7 @@ public: long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "frame"); ~wxPreviewFrame(); - bool OnClose(); + void OnCloseWindow(wxCloseEvent& event); virtual void Initialize(); virtual void CreateCanvas(); virtual void CreateControlBar(); @@ -182,6 +182,8 @@ protected: wxWindow* m_previewCanvas; wxPreviewControlBar* m_controlBar; wxPrintPreviewBase* m_printPreview; + +DECLARE_EVENT_TABLE() }; /* @@ -221,7 +223,7 @@ public: inline virtual wxPrintPreviewBase *GetPrintPreview() const { return m_printPreview; } void OnPrint(wxCommandEvent& event); - void OnClose(wxCommandEvent& event); + void OnWindowClose(wxCommandEvent& event); void OnNext(wxCommandEvent& event); void OnPrevious(wxCommandEvent& event); void OnZoom(wxCommandEvent& event);