git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28224
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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();
+ }
- wxMessageBox(_T("No native dialog support"),_T("Platform limitation"));
+ wxMessageBox(_T("No native dialog support"),_T("Platform limitation"));