diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 12655d3c1a..742bd32022 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -2536,7 +2536,7 @@ bool wxWindowMSW::MSWProcessMessage(WXMSG* pMsg) } } - if ( btn && btn->IsEnabled() ) + if ( btn && btn->IsEnabled() && btn->IsShownOnScreen() ) { btn->MSWCommand(BN_CLICKED, 0 /* unused */); return true;