1 \section{\class{wxChildFocusEvent
}}\label{wxchildfocusevent
}
3 A child focus event is sent to a (parent-)window when one of its child windows gains focus,
4 so that the window could restore the focus back to its corresponding child
5 if it loses it now and regains later.
7 Notice that child window is the direct child of the window receiving event.
8 Use
\helpref{FindFocus
}{wxwindowfindfocus
} to retreive the window which is actually getting focus.
10 \wxheading{Derived from
}
12 \helpref{wxCommandEvent
}{wxcommandevent
}\\
13 \helpref{wxEvent
}{wxevent
}\\
14 \helpref{wxObject
}{wxobject
}
16 \wxheading{Include files
}
20 \wxheading{Event table macros
}
22 To process a child focus event, use this event handler macro to direct input to a member
23 function that takes a wxChildFocusEvent argument.
26 \begin{twocollist
}\itemsep=
0pt
27 \twocolitem{{\bf EVT
\_CHILD\_FOCUS(func)
}}{Process a wxEVT
\_CHILD\_FOCUS event.
}
32 \helpref{Event handling overview
}{eventhandlingoverview
}
34 \latexignore{\rtfignore{\wxheading{Members
}}}
37 \membersection{wxChildFocusEvent::wxChildFocusEvent
}\label{wxchildfocuseventctor
}
39 \func{}{wxChildFocusEvent
}{\param{wxWindow *
}{win = NULL
}}
43 \wxheading{Parameters
}
45 \docparam{win
}{The direct child which is (or which contains the window which is) receiving the focus.
}
48 \membersection{wxChildFocusEvent::GetWindow
}\label{wxchildfocuseventgetwindow
}
50 Returns the direct child which receives the focus, or a (grand-)parent of the control receiving the focus.
52 To get the actually focused control use
\helpref{wxWindow::FindFocus
}{wxwindowfindfocus
}