X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff5802f3996f32207b3325e96af7decaae18971b..2e14066008229145e2da7b9f05a478ce38631f83:/src/os2/tooltip.cpp diff --git a/src/os2/tooltip.cpp b/src/os2/tooltip.cpp index 38d58abce4..3407b154e4 100644 --- a/src/os2/tooltip.cpp +++ b/src/os2/tooltip.cpp @@ -1,12 +1,12 @@ /////////////////////////////////////////////////////////////////////////////// -// Name: msw/tooltip.cpp +// Name: src/os2/tooltip.cpp // Purpose: wxToolTip class implementation for MSW // Author: David Webster // Modified by: // Created: 10/17/99 // RCS-ID: $Id$ // Copyright: (c) David Webster -// Licence: wxWindows license +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -56,7 +56,6 @@ void wxToolTip::Create( ) { ULONG lStyle = ES_READONLY | ES_MARGIN | ES_CENTER; - wxColour vColor; LONG lColor; char zFont[128]; @@ -72,9 +71,11 @@ void wxToolTip::Create( ,NULL ); if (!m_hWnd) - wxLogError("Unable to create tooltip window"); + { + wxLogError(wxT("Unable to create tooltip window")); + } - vColor.InitFromName("YELLOW"); + wxColour vColor( wxT("YELLOW") ); lColor = (LONG)vColor.GetPixel(); ::WinSetPresParam( m_hWnd ,PP_BACKGROUNDCOLOR @@ -98,7 +99,7 @@ void wxToolTip::DisplayToolTipWindow( LONG lWidth = 0L; LONG lHeight = 0L; - lWidth = m_sText.Length() * 13; + lWidth = m_sText.Length() * 8; lHeight = 15; ::WinSetWindowPos( m_hWnd ,HWND_TOP