wxWidgets/Win32: Added tooltip duration override of 10 seconds, so the tooltips stay visible long enough to finish reading them.

For the curious: tooltip duration defaults to a function of your configured mouse doubleclick rate, which happens to be something a lot of us users probably set to something pretty fast or really fast, to avoid accidental double clicks (mine's like 1 or 2 notches away from the fastest setting).  So my tooltips only stayed visible for like 2 seconds. >_<

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2201 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
Jake.Stine 2009-11-16 03:27:05 +00:00
parent 0068ec9cd0
commit a341a47f1f
1 changed files with 6 additions and 0 deletions

View File

@ -241,6 +241,12 @@ WXHWND wxToolTip::GetToolTipCtrl()
// subclass the newly created control
gs_wndprocToolTip = wxSetWindowProc(hwnd, wxToolTipWndProc);
#endif // wxUSE_TTM_WINDOWFROMPOINT
// PCSX2: Default tooltip length is way too short for people with sane doubleclick rates.
// Let's override it with something usable, like 8 seconds. :) --air
if( wxApp::GetComCtl32Version() >= 470 )
SendMessage((HWND)ms_hwndTT, TTM_SETDELAYTIME, TTDT_AUTOPOP, 8000);
}
}