From: Len W. <le...@we...> - 2009-07-17 22:03:01
|
I am trying to use Win32::GUI from a Perl/Tk program<br />to receive and interpret a message sent from another window.<br /><br />I have successfully set up a window to receive and a hook to<br /> handle the message.<br /> Using the example in Win32::GUI::Reference/Methods.pod, I have<br /><br /> sub msg_handler {<br /> ($object, $wParam, $lParam, $type, $msgcode) = @_;<br /> print "Click handler called!\n";<br /> }<br /><br />The result looks reasonable in the debugger, <br />and $lParam is supposed to be a pointer to a WM_COPYDATA structure.<br /><br />But how do I find and read the structure pointed to by the integer $lParam ?<br />I have a hunch that Win32::API::Struct could help, but I don't quite see how.<br /><br />Thanks,<br />-Len<br /> |