- if ( !wxTopLevelWindow::Create(parent, id, title, pos, size, style & ~(wxYES|wxOK|wxNO|wxCANCEL) , name) )
- return FALSE;
+ // ...but not these styles
+ style &= ~(wxYES | wxOK | wxNO); // | wxCANCEL
+
+ if ( !wxTopLevelWindow::Create( parent, id, title, pos, size, style, name ) )
+ return false;