]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/tooltip.cpp
Add doc for wxGraphicsContext.Create(), which is a lightweight context with no target...
[wxWidgets.git] / src / os2 / tooltip.cpp
index a2783f7b7c33a403e0cf9d4ec9ccf8e0d7ed927d..3407b154e4207785ac0de570b8a9e7c0c40e61a5 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        msw/tooltip.cpp
+// Name:        src/os2/tooltip.cpp
 // Purpose:     wxToolTip class implementation for MSW
 // Author:      David Webster
 // Modified by:
 // Purpose:     wxToolTip class implementation for MSW
 // Author:      David Webster
 // Modified by:
@@ -56,7 +56,6 @@ void wxToolTip::Create(
 )
 {
     ULONG                           lStyle = ES_READONLY | ES_MARGIN | ES_CENTER;
 )
 {
     ULONG                           lStyle = ES_READONLY | ES_MARGIN | ES_CENTER;
-    wxColour                        vColor;
     LONG                            lColor;
     char                            zFont[128];
 
     LONG                            lColor;
     char                            zFont[128];
 
@@ -72,9 +71,11 @@ void wxToolTip::Create(
                                ,NULL
                               );
     if (!m_hWnd)
                                ,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
     lColor = (LONG)vColor.GetPixel();
     ::WinSetPresParam( m_hWnd
                       ,PP_BACKGROUNDCOLOR