X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5d644707ca96dcaa63dc5a24c9eb5c2b7ee0b50d..08202189cbf2f78d932f85b9733b69e24f08e58c:/src/os2/tooltip.cpp diff --git a/src/os2/tooltip.cpp b/src/os2/tooltip.cpp index a89e99ae42..744db82fd5 100644 --- a/src/os2/tooltip.cpp +++ b/src/os2/tooltip.cpp @@ -6,7 +6,7 @@ // Created: 10/17/99 // RCS-ID: $Id$ // Copyright: (c) David Webster -// Licence: wxWindows license +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -56,13 +56,12 @@ void wxToolTip::Create( ) { ULONG lStyle = ES_READONLY | ES_MARGIN | ES_CENTER; - wxColour vColor; LONG lColor; char zFont[128]; m_hWnd = ::WinCreateWindow( HWND_DESKTOP ,WC_ENTRYFIELD - ,rsTip.c_str() + ,(PSZ)rsTip.c_str() ,lStyle ,0, 0, 0, 0 ,NULLHANDLE @@ -72,9 +71,9 @@ void wxToolTip::Create( ,NULL ); if (!m_hWnd) - wxLogError("Unable to create tooltip window"); + wxLogError(_T("Unable to create tooltip window")); - vColor.InitFromName("YELLOW"); + wxColour vColor( wxT("YELLOW") ); lColor = (LONG)vColor.GetPixel(); ::WinSetPresParam( m_hWnd ,PP_BACKGROUNDCOLOR