X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..dece3bfd8265ac467b1013e1a3951b042425a6c7:/src/generic/msgdlgg.cpp 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 );