X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..b1f50e652c0e105c0ed8ab627be837c45f7a1a00:/src/generic/msgdlgg.cpp?ds=inline diff --git a/src/generic/msgdlgg.cpp b/src/generic/msgdlgg.cpp index 7e2d9de6c0..6359bd9317 100644 --- a/src/generic/msgdlgg.cpp +++ b/src/generic/msgdlgg.cpp @@ -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 );