In the plugin I want to display a notification (MessageBox) when the Amibroker call a function in plugin.
Please teach me how to get Hwnd of an Amibroker? I want to use the Hwnd in MessageBox() command.
Thanks you!
In the plugin I want to display a notification (MessageBox) when the Amibroker call a function in plugin.
Please teach me how to get Hwnd of an Amibroker? I want to use the Hwnd in MessageBox() command.
Thanks you!
You must NOT display ANY UI (including message boxes) from your DLL because AFL engine is running in worker (non-UI) thread. If you want messages to debug your DLL use OutputDebugString Windows API. If you want UI to be displayed you have to use AFL function PopupWindow() AFL function. That's the only safe way to display "message box" from AFL.
See also:
and this: https://devblogs.microsoft.com/oldnewthing/?p=33843