#include </home/zeitlin/src/wx/github/interface/wx/event.h>
A child focus event is sent to a (parent-)window when one of its child windows gains focus, so that the window could restore the focus back to its corresponding child if it loses it now and regains later.
Notice that child window is the direct child of the window receiving event. Use wxWindow::FindFocus() to retrieve the window which is actually getting focus.
The following event handler macros redirect the events to member function handlers 'func' with prototypes like:
Event macros:
wxEVT_CHILD_FOCUS
event. Public Member Functions | |
wxChildFocusEvent (wxWindow *win=NULL) | |
Constructor. | |
wxWindow * | GetWindow () const |
Returns the direct child which receives the focus, or a (grand-)parent of the control receiving the focus. |
wxChildFocusEvent::wxChildFocusEvent | ( | wxWindow * | win = NULL | ) |
Constructor.
win | The direct child which is (or which contains the window which is) receiving the focus. |
wxWindow* wxChildFocusEvent::GetWindow | ( | ) | const |
Returns the direct child which receives the focus, or a (grand-)parent of the control receiving the focus.
To get the actually focused control use wxWindow::FindFocus.