#include </home/work/projects/wx/2.9/wx/interface/wx/event.h>

Notice that child window is the direct child of the window receiving event. Use wxWindow::FindFocus() to retreive the window which is actually getting focus.
The following event handler macros redirect the events to member function handlers 'func' with prototypes like:
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.
|
[ top ] |