Sorry, I can't get you clearly.
If you want a window without parent, that what you mentioned as NULL in the wxDialog constructor!
I think you are an MFC programmer, thats why your code looks looks like that. You can go through the wx documnetation to know the arguments of the functions.
The wxDialog Constructor looks like this....
wxDialog(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE, const wxString& name = "dialogBox")
So follow it to make the dialog
like
Code: Select all
wxDialog MyDialog(NULL,wxID_ANY,wxT("My Dialog"));
MyDialog.Show();