Remove MSW code targeted at versions prior to WinXP.

In 3.1 WinXP is required so remove checks and code for prior versions.
This commit is contained in:
Tobias Taschner
2015-08-06 09:44:20 +02:00
parent 0b821adf90
commit 388e82e70c
7 changed files with 26 additions and 80 deletions

View File

@@ -917,22 +917,9 @@ void wxWindowMSW::WarpPointer(int x, int y)
void wxWindowMSW::MSWUpdateUIState(int action, int state)
{
// WM_CHANGEUISTATE only appeared in Windows 2000 so it can do us no good
// to use it on older systems -- and could possibly do some harm
static int s_needToUpdate = -1;
if ( s_needToUpdate == -1 )
{
int verMaj, verMin;
s_needToUpdate = wxGetOsVersion(&verMaj, &verMin) == wxOS_WINDOWS_NT &&
verMaj >= 5;
}
if ( s_needToUpdate )
{
// we send WM_CHANGEUISTATE so if nothing needs changing then the system
// won't send WM_UPDATEUISTATE
::SendMessage(GetHwnd(), WM_CHANGEUISTATE, MAKEWPARAM(action, state), 0);
}
// we send WM_CHANGEUISTATE so if nothing needs changing then the system
// won't send WM_UPDATEUISTATE
::SendMessage(GetHwnd(), WM_CHANGEUISTATE, MAKEWPARAM(action, state), 0);
}
// ---------------------------------------------------------------------------