- MyDialog *dialog = new MyDialog;
- if (dialog->LoadNativeDialog(this, _T("dialog1")))
- {
-/*
- wxTextCtrl *text = (wxTextCtrl *)wxFindWindowByName("multitext3", dialog);
- if (text)
- text->SetValue("wxWindows resource demo");
-*/
- dialog->SetModal(TRUE);
- dialog->ShowModal();
- }
- dialog->Close(TRUE);
+#if ( defined(__WXPM__) || defined(__WXMSW__) ) && !defined(__WXUNIVERSAL__)
+ MyDialog dialog;
+ if (dialog.LoadNativeDialog(this, wxT("dialog1")))
+ {
+ dialog.ShowModal();
+ }
+#else
+ wxMessageBox(wxT("No native dialog support"),wxT("Platform limitation"));
+#endif