From fe8518f37c9c0638e7f63ca4aa91e65c1c49ccc4 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 11 Oct 2002 13:46:56 +0000 Subject: Fix bug #621740 - tooltips stay up in WIN32 when USE_TRACK_MOUSE is not defined. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2670 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_win32.cxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 7a0d777e6..0579f0b1d 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_win32.cxx,v 1.33.2.37.2.37 2002/07/01 20:14:08 easysw Exp $" +// "$Id: Fl_win32.cxx,v 1.33.2.37.2.38 2002/10/11 13:46:56 easysw Exp $" // // WIN32-specific code for the Fast Light Tool Kit (FLTK). // @@ -71,6 +71,10 @@ //#define USE_TRACK_MOUSE +#if !defined(__GNUC__) +# define USE_TRACK_MOUSE +#endif // !__GNUC__ + // // WM_SYNCPAINT is an "undocumented" message, which is finally defined in @@ -629,7 +633,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar case WM_MOUSELEAVE: Fl::belowmouse(0); -// Fl::handle(FL_LEAVE, window); + if (!window->parent()) Fl::handle(FL_LEAVE, window); break; case WM_SETFOCUS: @@ -1179,5 +1183,5 @@ void Fl_Window::make_current() { } // -// End of "$Id: Fl_win32.cxx,v 1.33.2.37.2.37 2002/07/01 20:14:08 easysw Exp $". +// End of "$Id: Fl_win32.cxx,v 1.33.2.37.2.38 2002/10/11 13:46:56 easysw Exp $". // -- cgit v1.2.3