> It sends a message when it leaves the window declared by hWnd 
> in that  
> call. Maybe hWnd is wrong, so we immediatly get the leave 
> event since  
> we were not in the given window to begin with. This of course 
> is only  
> a wild uess because I am currently Mac-only and can't test the MS  
> Windows version.


As far as I can tell, it attaches the TrackMouseEvent stuff to the
window on any mouse move (but I guess the underlying win32 system only
attaches one actual event.) When the WM_LEAVE is sent, then the next
move attaches a new one...

But it seems like, in the GL window, the WM_LEAVE is sent pretty much as
soon as it is attached, or something, and the next mouse-move attaches
another, causing a flood of WM_LEAVE messages whenever the mouse
moves...

I have no idea why this happens, but I guess that Matthias' suggestion
that the hWnd is wrong might make some sense - we maybe have the hWnd
for the main window rather than the GL window, or vice-versa...?

Anyway, *not* doing the TrackMouseEvent stuff seems to make this all
work OK in a GL window, and as far as I can see the subwindow
enter/leave stuff still works (well, the test/subwindow demo still seems
to work, anyway) so I am not sure what functionality we lose? I don't
understand enough about this mechanism to know...

Did anyone post an STR for this BTW?

-- 
Ian




SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to