Applied patch [ 740012 ] GetKeyState returns 16-Bit value on WindowsNT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3965,7 +3965,10 @@ void wxWindowMSW::InitMouseEvent(wxMouseEvent& event,
|
||||
event.m_leftDown = (flags & MK_LBUTTON) != 0;
|
||||
event.m_middleDown = (flags & MK_MBUTTON) != 0;
|
||||
event.m_rightDown = (flags & MK_RBUTTON) != 0;
|
||||
event.m_altDown = (::GetKeyState(VK_MENU) & 0x80000000) != 0;
|
||||
// event.m_altDown = (::GetKeyState(VK_MENU) & 0x80000000) != 0;
|
||||
// Returns different negative values on WinME and WinNT,
|
||||
// so simply test for negative value.
|
||||
event.m_altDown = ::GetKeyState(VK_MENU) < 0;
|
||||
|
||||
event.SetTimestamp(s_currentMsg.time);
|
||||
event.m_eventObject = this;
|
||||
|
Reference in New Issue
Block a user