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:
@@ -2398,7 +2398,10 @@ bool wxTreeCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
|
||||
// similar to the ones from a "real" WM_KEYDOWN so that
|
||||
// CreateKeyEvent() works correctly
|
||||
WXLPARAM lParam =
|
||||
(::GetKeyState(VK_MENU) & 0x100 ? KF_ALTDOWN : 0) << 16;
|
||||
// (::GetKeyState(VK_MENU) & 0x100 ? KF_ALTDOWN : 0) << 16;
|
||||
// Returns different negative values on WinME and WinNT,
|
||||
// so simply test for negative value.
|
||||
(::GetKeyState(VK_MENU) < 0 ? KF_ALTDOWN : 0) << 16;
|
||||
|
||||
WXWPARAM wParam = info->wVKey;
|
||||
|
||||
|
Reference in New Issue
Block a user