X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..f8c10795d589c024dc7fc3640087a48a1ec612ce:/src/msw/tooltip.cpp?ds=inline diff --git a/src/msw/tooltip.cpp b/src/msw/tooltip.cpp index d64a5e2c12..8acb197dc3 100644 --- a/src/msw/tooltip.cpp +++ b/src/msw/tooltip.cpp @@ -6,7 +6,7 @@ // Created: 31.01.99 // RCS-ID: $Id$ // Copyright: (c) 1999 Vadim Zeitlin -// Licence: wxWidgets licence +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -289,7 +289,7 @@ void wxToolTip::Add(WXHWND hWnd) if ( index != wxNOT_FOUND ) { #ifdef TTM_SETMAXTIPWIDTH - if ( wxTheApp->GetComCtl32Version() >= 470 ) + if ( wxApp::GetComCtl32Version() >= 470 ) { // use TTM_SETMAXTIPWIDTH to make tooltip multiline using the // extent of its first line as max value @@ -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,