In WinAPI you can call global function SetFocus(HWND)
to set focus to NULL window (keystrokes are ignored):
::SetFocus(NULL);
wxWidgets have wxWindow::SetFocus(void)
virtual member function so you cannot pass NULL
. How to do portable equivalent of ::SetFocus(NULL)
in wxWidgets?