View Issue Details

IDProjectCategoryView StatusLast Update
0037041LazarusLCLpublic2020-05-08 11:49
Reporterchronos Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version2.0.4 
Summary0037041: MM_MCINOTIFY message is not captured
DescriptionMM_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
TagsNo tags attached.
Fixed in Revision
LazTarget
WidgetsetWin32/Win64
Attached Files

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-05-08 11:49 chronos New Issue