]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/tooltip.cpp
Changed CanApplyParentThemeBackground to ApplyParentThemeBackground
[wxWidgets.git] / src / msw / tooltip.cpp
index 29b03ade78ca98c44d7f64d4e0edaa8a6d201b79..0ab90686a80205ccd8b484149c0e7c9d5d05b688 100644 (file)
@@ -217,8 +217,7 @@ WXHWND wxToolTip::GetToolTipCtrl()
 
 #if wxUSE_TTM_WINDOWFROMPOINT
            // subclass the newly created control
-           gs_wndprocToolTip = (WNDPROC)::GetWindowLong(hwnd, GWL_WNDPROC);
-           ::SetWindowLong(hwnd, GWL_WNDPROC, (long)wxToolTipWndProc);
+           gs_wndprocToolTip = wxSetWindowProc(hwnd, wxToolTipWndProc);
 #endif // wxUSE_TTM_WINDOWFROMPOINT
        }
     }