Contents Up Previous Next

Why does my canvas not have the keyboard focus under Windows?

Under MS Windows, if you have more than one subwindow per frame, you need to call wxWindow::SetFocus explicitly, or wxWindows will not know which subwindow needs the focus. A good place to do this is in wxFrame::OnActivate.