On May 15, 2007, at 8:50 PM, bruce wrote: > I am capturing mouse events and need to send them to my fltk > application. Since the fltk appl. is not the active application I > need to use SendMessage vs. SendInput. > > When I send MOUSEMOVE events, I do get a redraw but the fltk appl. > does not do things like highlight buttons, etc. I assumed that the > window containing widgets would loop through widgets and see if > there is one that requires the event (hence its over the widget). > It obviously gets the MOUSEMOVE but when the mouse is over buttons, > the window doesn't seem to pass them to the widget.
There is a whole bunch of events that you need to simulate. Take a look at src/Fl_win32.cxx at the function WndProc. All messages need to arrive in a concerted order to make FLTK do the right thing. It seems to me like you are doing something that could be solved more easily using conventional methods of interprocess communication. ---- http://robowerk.com/ _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

