Simplify wxFindReplaceDialogBase::Send() code slightly
Use ProcessWindowEvent() instead of GetEventHandler()->ProcessEvent(). No real changes.
This commit is contained in:
parent
cc3afe0dc6
commit
0798906e7b
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user