Windows Message Handling on fmx PLugin

I’ve a FmxHost and Load VCLVisualPLugin.

In The VCLPlugin:

procedure WMDeviceChange(var Msg:TMessage); message WM_DEVICECHANGE;

I declare this to check the serial device plug and unplug.

It can work if only in vcl application.

However, when I put this in vclvisualplugin and load by a fmxhost.

The event seems not working cannot detect the device changes.

Any solution on this?

Joe

If you put this event into FMX host, will it be fired?
if yes, you can pass it to plugin via custom method