Simplify wxFindReplaceDialogBase::Send() code slightly

Use ProcessWindowEvent() instead of GetEventHandler()->ProcessEvent().

No real changes.
This commit is contained in:
Vadim Zeitlin 2021-08-23 17:18:03 +01:00
parent cc3afe0dc6
commit 0798906e7b

View File

@ -84,13 +84,13 @@ void wxFindReplaceDialogBase::Send(wxFindDialogEvent& event)
}
}
if ( !GetEventHandler()->ProcessEvent(event) )
if ( !ProcessWindowEvent(event) )
{
// the event is not propagated upwards to the parent automatically
// because the dialog is a top level window, so do it manually as
// in 9 cases of 10 the message must be processed by the dialog
// in 9 cases out of 10 the message must be processed by the dialog
// owner and not the dialog itself
(void)GetParent()->GetEventHandler()->ProcessEvent(event);
(void)GetParent()->ProcessWindowEvent(event);
}
}