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