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
}
22 \helpref{wxCore
}{librarieslist
}
24 \wxheading{Event table macros
}
26 To process a child focus event, use this event handler macro to direct input to a member
27 function that takes a wxChildFocusEvent argument.
30 \begin{twocollist
}\itemsep=
0pt
31 \twocolitem{{\bf EVT
\_CHILD\_FOCUS(func)
}}{Process a wxEVT
\_CHILD\_FOCUS event.
}
36 \helpref{Event handling overview
}{eventhandlingoverview
}
38 \latexignore{\rtfignore{\wxheading{Members
}}}
41 \membersection{wxChildFocusEvent::wxChildFocusEvent
}\label{wxchildfocuseventctor
}
43 \func{}{wxChildFocusEvent
}{\param{wxWindow *
}{win = NULL
}}
47 \wxheading{Parameters
}
49 \docparam{win
}{The direct child which is (or which contains the window which is) receiving the focus.
}
52 \membersection{wxChildFocusEvent::GetWindow
}\label{wxchildfocuseventgetwindow
}
54 Returns the direct child which receives the focus, or a (grand-)parent of the control receiving the focus.
56 To get the actually focused control use
\helpref{wxWindow::FindFocus
}{wxwindowfindfocus
}.