From 291dddd7dc05b31db1c03b1b8841c579e65dce16 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 11 Dec 2003 12:37:41 +0000 Subject: [PATCH] Applied patch [ 847127 ] HELP button displayed by wxMessageDialog with wxSTAY_ON_TOP. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/msgdlgg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); -- 2.45.2