X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9d830d3ea19fb4bbbba32fb00af3e8dd8e10537e..e2c922f53f6a8f08e8a82817c75981822dbe9ca1:/src/generic/msgdlgg.cpp diff --git a/src/generic/msgdlgg.cpp b/src/generic/msgdlgg.cpp index 96b6cc0a67..6359bd9317 100644 --- a/src/generic/msgdlgg.cpp +++ b/src/generic/msgdlgg.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "msgdlgg.h" #endif @@ -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 );