X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0e320a79f187558effb04d92020b470372bbe456..2c738dd87ac62d3283c45f9eeac2341326b4d7dd:/src/os2/dialog.cpp diff --git a/src/os2/dialog.cpp b/src/os2/dialog.cpp index bf3cae5e35..f15bd2b353 100644 --- a/src/os2/dialog.cpp +++ b/src/os2/dialog.cpp @@ -55,7 +55,7 @@ bool wxDialog::Create(wxWindow *parent, wxWindowID id, SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE)); SetName(name); - + if (!parent) wxTopLevelWindows.Append(this); @@ -78,7 +78,7 @@ void wxDialog::SetModal(bool flag) else if ( m_windowStyle & wxDIALOG_MODAL ) m_windowStyle -= wxDIALOG_MODAL ; - + wxModelessWindows.DeleteObject(this); if (!flag) wxModelessWindows.Append(this); @@ -132,11 +132,6 @@ bool wxDialog::IsIconized() const return FALSE; } -void wxDialog::SetClientSize(int width, int height) -{ - // TODO -} - void wxDialog::GetPosition(int *x, int *y) const { // TODO @@ -254,12 +249,12 @@ void wxDialog::OnCloseWindow(wxCloseEvent& event) // The default OnCancel (above) simply ends a modal dialog, and hides a modeless dialog. static wxList closing; - + if ( closing.Member(this) ) return; - + closing.Append(this); - + wxCommandEvent cancelEvent(wxEVT_COMMAND_BUTTON_CLICKED, wxID_CANCEL); cancelEvent.SetEventObject( this ); GetEventHandler()->ProcessEvent(cancelEvent); // This may close the dialog