make mdi.cpp resize for wxUniv/ Borland as well as wx11/gcc

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Chris Elliott
2002-10-11 09:09:39 +00:00
parent 54946ca676
commit 1e4d96486a

View File

@@ -286,7 +286,7 @@ void MyFrame::OnSize(wxSizeEvent& event)
// FIXME: On wxX11, we need the MDI frame to process this // FIXME: On wxX11, we need the MDI frame to process this
// event, but on other platforms this should not // event, but on other platforms this should not
// be done. // be done.
#ifdef __WXX11__ #ifdef __WXUNIVERSAL__
event.Skip(); event.Skip();
#endif #endif
} }
@@ -443,6 +443,7 @@ void MyChild::OnChangeSize(wxCommandEvent& WXUNUSED(event))
void MyChild::OnChangeTitle(wxCommandEvent& WXUNUSED(event)) void MyChild::OnChangeTitle(wxCommandEvent& WXUNUSED(event))
{ {
//#if wxUSE_TEXTDLG
static wxString s_title = _T("Canvas Frame"); static wxString s_title = _T("Canvas Frame");
wxString title = wxGetTextFromUser(_T("Enter the new title for MDI child"), wxString title = wxGetTextFromUser(_T("Enter the new title for MDI child"),
@@ -454,6 +455,7 @@ void MyChild::OnChangeTitle(wxCommandEvent& WXUNUSED(event))
s_title = title; s_title = title;
SetTitle(s_title); SetTitle(s_title);
//#endif
} }
void MyChild::OnActivate(wxActivateEvent& event) void MyChild::OnActivate(wxActivateEvent& event)