wxWindow::OnActivate

void OnActivate(Bool active)

Called when a window is activated or deactivated (Windows 3 only). If the window is being activated, active is TRUE, else it is FALSE.