]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/tooltip.cpp
Fixes from Mumit Khan
[wxWidgets.git] / src / msw / tooltip.cpp
index f594903e771bb1543e200555e627a569282b1304..8b93c29007080042750182725ef6aae26c558da7 100644 (file)
@@ -43,7 +43,7 @@
 //     For now, instead of this, we just add all radiobox buttons to the
 //     tooltip control as well (see SetWindow) - this is probably less
 //     efficient, but it works.
-#define wxUSE_TTM_WINDOWFROMPOINT   0
+#define wxUSE_TTM_WINDOWFROMPOINT   1
 
 // ----------------------------------------------------------------------------
 // global variables
@@ -162,7 +162,7 @@ LRESULT APIENTRY wxToolTipWndProc(HWND hwndTT,
         }
     }
 
-    return ::CallWindowProc(gs_wndprocToolTip, hwndTT, msg, wParam, lParam);
+    return ::CallWindowProc(CASTWNDPROC gs_wndprocToolTip, hwndTT, msg, wParam, lParam);
 }
 
 #endif // wxUSE_TTM_WINDOWFROMPOINT
@@ -282,6 +282,7 @@ void wxToolTip::SetWindow(wxWindow *win)
         Add(m_window->GetHWND());
     }
 
+#if 1 //!wxUSE_TTM_WINDOWFROMPOINT
     // and all of its subcontrols (e.g. radiobuttons in a radiobox) as well
     wxControl *control = wxDynamicCast(m_window, wxControl);
     if ( control )
@@ -298,6 +299,7 @@ void wxToolTip::SetWindow(wxWindow *win)
             }
         }
     }
+#endif // !wxUSE_TTM_WINDOWFROMPOINT
 }
 
 void wxToolTip::SetTip(const wxString& tip)