added and documented wxWS_EX_BLOCK_EVENTS flag

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-10-08 16:46:01 +00:00
parent d11710cbb5
commit e4b713a278
5 changed files with 47 additions and 8 deletions

View File

@@ -1001,12 +1001,14 @@ bool wxEvtHandler::ProcessEvent(wxEvent& event)
{
wxWindow *win = (wxWindow *)this;
// also, don't propagate events beyond the first top level window: it
// doesn't make sense to process dialogs events in the parent frame
if ( !win->IsTopLevel() )
// honour the requests to stop propagation at this window: this is
// used by the dialogs, for example, to prevent processing the events
// from the dialog controls in the parent frame which rarely, if ever,
// makes sense
if ( !(win->GetExtraStyle() & wxWS_EX_BLOCK_EVENTS) )
{
wxWindow *parent = win->GetParent();
if (parent && !parent->IsBeingDeleted())
if ( parent && !parent->IsBeingDeleted() )
return parent->GetEventHandler()->ProcessEvent(event);
}
}