X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2a1f999fafa4312ccd47b7be65c672c2220fea36..96339a78f24abf0a7b346c6ddce59e8a62165911:/src/msw/tooltip.cpp diff --git a/src/msw/tooltip.cpp b/src/msw/tooltip.cpp index 71ef1f714e..a1f1b5c0a4 100644 --- a/src/msw/tooltip.cpp +++ b/src/msw/tooltip.cpp @@ -141,7 +141,7 @@ LRESULT APIENTRY wxToolTipWndProc(HWND hwndTT, { LPPOINT ppt = (LPPOINT)lParam; - // the window on which event occured + // the window on which event occurred HWND hwnd = ::WindowFromPoint(*ppt); OutputDebugString("TTM_WINDOWFROMPOINT: "); @@ -317,9 +317,9 @@ void wxToolTip::Add(WXHWND hWnd) } SIZE sz; - if ( !GetTextExtentPoint(hdc, m_text, index, &sz) ) + if ( !::GetTextExtentPoint32(hdc, m_text, index, &sz) ) { - wxLogLastError(wxT("GetTextExtentPoint")); + wxLogLastError(wxT("GetTextExtentPoint32")); } SendTooltipMessage(GetToolTipCtrl(), TTM_SETMAXTIPWIDTH,