On 16.06.2008, at 22:53, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>  
wrote:

>> Yuri D'Elia wrote:
>> Depending on the OS on what constitutes "event data", this could be  
>> tricky.
>> For PostMessage, would that be "wParam" or "lParam" or both combined?
>
> Your answer brought me an idea I didn't even thought before.
> I pass the data pointer to the dll then I retrieve it through
> the lParam parameter of the PostMessage function:
>
> fl_msg.lParam
>
> It works and this way I don't need a global pointer anymore
> but it's a little bit tricky to do.
> Of course a void *data argument would be much easier and safe
> but for now I do it this way.


Sorry to come in late her, but Ian is right, the lParam is the WIN32  
way to do just this. The FLTK function has no extra parameter simply  
because no other pointer is provided by the underlaying system  
architecture, and the user may actually use lParam for something  
entirely different. It would be wrong to provide something that looks  
like a pointer and actually contain the x and y mouse coordinates.

Matthias


----
http://robowerk.com/


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

Reply via email to