Removal of deprecated methods.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-07-13 13:13:29 +00:00
parent 16640ba226
commit a61fea4144

View File

@@ -90,13 +90,11 @@ void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
void MyFrame::OnTest1(wxCommandEvent& WXUNUSED(event)) void MyFrame::OnTest1(wxCommandEvent& WXUNUSED(event))
{ {
#if ( defined(__WXOS2__) || defined(__WXMSW__) ) && !defined(__WXUNIVERSAL__) #if ( defined(__WXOS2__) || defined(__WXMSW__) ) && !defined(__WXUNIVERSAL__)
MyDialog *dialog = new MyDialog; MyDialog dialog;
if (dialog->LoadNativeDialog(this, _T("dialog1"))) if (dialog.LoadNativeDialog(this, _T("dialog1")))
{ {
dialog->SetModal(true); dialog.ShowModal();
dialog->ShowModal();
} }
dialog->Close(true);
#else #else
wxMessageBox(_T("No native dialog support"),_T("Platform limitation")); wxMessageBox(_T("No native dialog support"),_T("Platform limitation"));
#endif #endif