Missed gain canvas focus for Win7 wheel support

This commit is contained in:
Charles J. Cliffe 2016-05-31 17:42:44 -04:00
parent baa7501711
commit ce697c610d
1 changed files with 5 additions and 0 deletions

View File

@ -194,6 +194,11 @@ void GainCanvas::OnMouseLeftWindow(wxMouseEvent& event) {
void GainCanvas::OnMouseEnterWindow(wxMouseEvent& event) {
InteractiveCanvas::mouseTracker.OnMouseEnterWindow(event);
SetCursor(wxCURSOR_CROSS);
#ifdef _WIN32
if (wxGetApp().getAppFrame()->canFocus()) {
this->SetFocus();
}
#endif
}