]> git.saurik.com Git - wxWidgets.git/commitdiff
Removal of deprecated methods.
authorWłodzimierz Skiba <abx@abx.art.pl>
Tue, 13 Jul 2004 13:13:29 +0000 (13:13 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Tue, 13 Jul 2004 13:13:29 +0000 (13:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/nativdlg/nativdlg.cpp

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