]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/msgdlgg.cpp
Can't yet use RegisterDragDrop, RevokeDragDrop on eVC4
[wxWidgets.git] / src / generic / msgdlgg.cpp
index 7e2d9de6c0021ee5d75740f398ec53144e9429ca..6359bd93173962c9360310572b47f2f63c806529 100644 (file)
@@ -124,7 +124,8 @@ wxGenericMessageDialog::wxGenericMessageDialog( wxWindow *parent,
 
     // 4) buttons
 #if wxUSE_BUTTON
-    topsizer->Add( CreateButtonSizer( style ), 0, wxCENTRE | wxALL, 10 );
+    topsizer->Add( CreateButtonSizer( style & (wxOK|wxCANCEL|wxYES_NO|wxYES_DEFAULT|wxNO_DEFAULT) ),
+                   0, wxCENTRE | wxALL, 10 );
  #endif
 
     SetAutoLayout( TRUE );