X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f9aa52355eb0db3fd5ef366dbf37d01b32aa3eee..0364ac987d405a76385da84fa769f544bf50d40b:/src/msw/window.cpp diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 03416b3402..bf197f2e16 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -5794,9 +5794,7 @@ int wxWindowMSW::HandleMenuChar(int WXUNUSED_IN_WINCE(chAccel), #ifndef __WXWINCE__ const HMENU hmenu = (HMENU)lParam; - MENUITEMINFO mii; - wxZeroMemory(mii); - mii.cbSize = sizeof(MENUITEMINFO); + WinStruct mii; // we could use MIIM_FTYPE here as we only need to know if the item is // ownerdrawn or not and not dwTypeData which MIIM_TYPE also returns, but @@ -5950,7 +5948,10 @@ bool wxWindowMSW::HandleJoystickEvent(WXUINT msg, int x, int y, WXUINT flags) } wxJoystickEvent event(eventType, buttons, joystick, change); - event.SetPosition(wxPoint(x, y)); + if ( eventType == wxEVT_JOY_ZMOVE ) + event.SetZPosition(x); + else + event.SetPosition(wxPoint(x, y)); event.SetEventObject(this); return HandleWindowEvent(event);