I'm working on a GUI interface to create skins for my skin module. I'd like to be able to set an event (using SetEvent('MouseDown', \&handle)), and when
I'd done with that event, reset the event to it's prior behavior.  Is there
a way to do this?  I've looked on MSDN, and the closest that I can find is
CloseHandle.  However, there does not appear to be a way to get the handle
of the event.

I may be misunderstanding - but couldn't you do something like:

my $original=\&Original;
$control->SetEvent('MouseDown', $original ));
...
#set new handler...
$control->SetEvent('MouseDown', \&handle));
...
#set back to original
$control->SetEvent('MouseDown', $original ));

Cheers,

jez.



Reply via email to