]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/tooltip.cpp
getting rid of warnings
[wxWidgets.git] / src / os2 / tooltip.cpp
index 90254e24821cff9377068628fc8a545aff173fef..a89e99ae425fdd3b09a19f0aefc728532aebf984 100644 (file)
@@ -81,7 +81,7 @@ void wxToolTip::Create(
                       ,sizeof(LONG)
                       ,(PVOID)&lColor
                      );
                       ,sizeof(LONG)
                       ,(PVOID)&lColor
                      );
-    strcpy(zFont, "10.Helv");
+    strcpy(zFont, "8.Helv");
     ::WinSetPresParam( m_hWnd
                       ,PP_FONTNAMESIZE
                       ,strlen(zFont) + 1
     ::WinSetPresParam( m_hWnd
                       ,PP_FONTNAMESIZE
                       ,strlen(zFont) + 1
@@ -98,7 +98,7 @@ void wxToolTip::DisplayToolTipWindow(
     LONG                            lWidth = 0L;
     LONG                            lHeight = 0L;
 
     LONG                            lWidth = 0L;
     LONG                            lHeight = 0L;
 
-    lWidth = m_sText.Length() * 13;
+    lWidth = m_sText.Length() * 8;
     lHeight = 15;
     ::WinSetWindowPos( m_hWnd
                       ,HWND_TOP
     lHeight = 15;
     ::WinSetWindowPos( m_hWnd
                       ,HWND_TOP
@@ -125,7 +125,7 @@ void wxToolTip::SetTip(
 
     ::WinQueryWindowPos(m_hWnd, &vSwp);
     m_sText = rsTip;
 
     ::WinQueryWindowPos(m_hWnd, &vSwp);
     m_sText = rsTip;
-    lWidth = rsTip.Length() * 13;
+    lWidth = rsTip.Length() * 8;
     lHeight = 15;
     ::WinSetWindowPos( m_hWnd
                       ,HWND_TOP
     lHeight = 15;
     ::WinSetWindowPos( m_hWnd
                       ,HWND_TOP