Create wxPrintAbortDialog more sensibly.
Instead of having an empty constructor and filling the dialog with controls from outside, do the work in the constructor. This changes the meaning of ctor's 'title' argument, but this class' terrible API made it unusable for direct use anyway, so it doesn't seem to be harmful. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -733,14 +733,11 @@ class WXDLLIMPEXP_CORE wxPrintAbortDialog: public wxDialog
|
||||
{
|
||||
public:
|
||||
wxPrintAbortDialog(wxWindow *parent,
|
||||
const wxString& title,
|
||||
const wxString& documentTitle,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = 0,
|
||||
const wxString& name = wxT("dialog"))
|
||||
: wxDialog(parent, wxID_ANY, title, pos, size, style, name)
|
||||
{
|
||||
}
|
||||
long style = wxDEFAULT_DIALOG_STYLE,
|
||||
const wxString& name = wxT("dialog"));
|
||||
|
||||
void OnCancel(wxCommandEvent& event);
|
||||
|
||||
|
Reference in New Issue
Block a user