X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab5903dae395cad36ca7e8ae88709674729a62f4..aee237983f0ccfd026bf26c574aad0516e03a2f3:/src/os2/window.cpp diff --git a/src/os2/window.cpp b/src/os2/window.cpp index 2727640fb4..c295593ddf 100644 --- a/src/os2/window.cpp +++ b/src/os2/window.cpp @@ -46,6 +46,8 @@ #include "wx/settings.h" #include "wx/intl.h" #include "wx/log.h" + #include "wx/textctrl.h" + #include "wx/menuitem.h" #include #endif @@ -57,8 +59,6 @@ #include "wx/dnd.h" #endif -#include "wx/menuitem.h" - #include "wx/os2/private.h" #if wxUSE_TOOLTIPS @@ -73,9 +73,6 @@ #include "wx/caret.h" #endif // wxUSE_CARET - -#include "wx/textctrl.h" - #include // @@ -2394,9 +2391,6 @@ MRESULT wxWindowOS2::OS2WindowProc( WXUINT uMsg, case WM_BUTTON3MOTIONEND: case WM_BUTTON3MOTIONSTART: { - if (uMsg == WM_BUTTON1DOWN && AcceptsFocus()) - SetFocus(); - short nX = LOWORD(wParam); short nY = HIWORD(wParam); @@ -3294,7 +3288,7 @@ bool wxWindowOS2::OS2OnDrawItem( int vId, { vError = ::WinGetLastError(vHabmain); sError = wxPMErrorToStr(vError); - wxLogError(_T("Unable to set current color table. Error: %s\n"), sError.c_str()); + wxLogError(_T("Unable to set current color table (1). Error: %s\n"), sError.c_str()); } // // Set the color table to RGB mode @@ -3309,7 +3303,7 @@ bool wxWindowOS2::OS2OnDrawItem( int vId, { vError = ::WinGetLastError(vHabmain); sError = wxPMErrorToStr(vError); - wxLogError(_T("Unable to set current color table. Error: %s\n"), sError.c_str()); + wxLogError(_T("Unable to set current color table (2). Error: %s\n"), sError.c_str()); } wxCHECK( pMenuItem->IsKindOf(CLASSINFO(wxMenuItem)), FALSE ); @@ -5046,12 +5040,20 @@ wxWindow* wxFindWindowAtPoint(const wxPoint& rPt) // Get the current mouse position. wxPoint wxGetMousePosition() { - POINTL vPt; + POINTL vPt; ::WinQueryPointerPos(HWND_DESKTOP, &vPt); return wxPoint(vPt.x, vPt.y); } +wxMouseState wxGetMouseState() +{ + wxMouseState ms; + // TODO + return ms; +} + + wxWindowOS2* FindWindowForMouseEvent( wxWindow* pWin, short* WXUNUSED(pnX), short* WXUNUSED(pnY) )