From 08f8037109b15f6fe0c19dbff26a1ff4ef1adddc Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 2 Sep 2005 08:20:05 +0000 Subject: [PATCH] ignore hidden buttons when emulating clicks on them git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/dialog.cpp b/src/msw/dialog.cpp index 1f57be36a8..dcb6304787 100644 --- a/src/msw/dialog.cpp +++ b/src/msw/dialog.cpp @@ -388,7 +388,7 @@ bool wxDialog::EmulateButtonClickIfPresent(int id) { wxButton *btn = wxDynamicCast(FindWindow(id), wxButton); - if ( !btn || !btn->IsEnabled() ) + if ( !btn || !btn->IsEnabled() || !btn->IsShown() ) return false; btn->MSWCommand(BN_CLICKED, 0 /* unused */); -- 2.47.2