slloyd has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to capture the notify event in a Win32::GUI application when I load a file using winmm and mciSendStringA. According to Microsoft I can pass in a notify flag so that it will post an MM_MCINOTIFY message when the device completes an action. http://msdn.microsoft.com/en-us/library/ms713401(VS.85).aspx

How can I capture that event with Win32::GUI::Dialog? Is is like a Terminate event? sub MainWindow_Terminate{...} I tried sub MainWindow_MM_MCINOTIFY{...} but it did not work.

Thanks for any pointers.

-------------------------------
Sign up now for a free monthly newsletter service!
http://www.bestgazette.com

Replies are listed 'Best First'.
Re: Capturing the MM_MCINOTIFY event of winmm
by Anonymous Monk on Jul 07, 2008 at 16:17 UTC
      I added the following but did not get a response. :(
      my $MM_MCINOTIFY = 953; $mainwindow->Hook($MM_MCINOTIFY, \&mciNotify); ######################### sub mciNotify{ print "mciNotify: @_\r\n"; return 1; }

      -------------------------------
      Sign up now for a free monthly newsletter service!
      http://www.bestgazette.com