MM_MCINOTIFY message is not captured
Original Reporter info from Mantis: chronos
-
Reporter name:
Original Reporter info from Mantis: chronos
- Reporter name:
Description:
MM_MCINOTIFY can be used to get notification for the end of sound playback on Windows. This message is working ok in Delphi but not in Lazarus.
Example file is http://svn.zdechov.net/c-evo/trunk/Packages/CevoComponents/Sound.pas where message should be handled by OnMCI method in TSoundPlayer class:
TSoundPlayer = class(TForm)
procedure OnMCI(var m: TMessage); message MM_MCINOTIFY;
end;
But it is never fired up under Lazarus.
I It is possible to use workaround and capture this message at lower level. See https://wiki.lazarus.freepascal.org/Win32/64_Interface#Processing_non-user_messages_in_your_window for more information. But it would be better to implement this to be compatible with Delphi code.
There is also old similar question in forum here https://forum.lazarus.freepascal.org/index.php?topic=24865.0 and also more general question for capturing messages https://forum.lazarus.freepascal.org/index.php?topic=6062.0
Mantis conversion info:
- Mantis ID: 37041
- Version: 2.0.4