In my application, the main form will get a plugin form, which contain a TMemo component, from external dll and display this form in a panel. (Of course, the plugin form's BorderStyle is already setted to bsNone)
1.The main form will show the external form like this:
>> LoadPlugin(Application.Handle, PluginPanel.Handle);
2.In the external DLL, the LoadPlugin is as below:
>> LoadPlugin(hAPP: THANDLE; hHostWnd: HWND);
>> Application.Handle := hAPP;
>> with TfmPlugin.CreateParented(AHostWnd) do
Yes, fmPlugin can display correctly in PluginPanel, but the TMemo on fmPlugin can't get arrow key events. If fmPlugin display common dialogs, such as FindDialog, shortcut keys for dialog can't work either.
I think the main form must have masked some keyboard messages which should be sent to the plugin DLL, but I don't know how to solve this problem, if you know, please tell me.