wxWidgets Event Handling

Note that only command events (whose event classes are based directly or indirectly on wxCommandEvent) are recursively applied to the window parent's event handler. As this quite often causes confusion for users,here is a list of system events that will not get sent to the parent's event handler: wxActiveEvent, wxCloseEvent, wxEraseEvent, wxFocusEvent, wxKeyEvent...)

These events do not propagate because they are meant for a particular window, and sending a child's paint event to its parent, for example, does not make sense.

原文地址:https://www.cnblogs.com/wucg/p/2200092.html