I have a Windows VCL application written in C++Builder. Some of the UI is implemented inside a DLL rather than directly in the main EXE.
The DLL exports a function that creates and shows a VCL form, something like:
extern "C" __declspec(dllexport)
void __stdcall show_plugin_form()
{
auto *f(new TPluginForm(nullptr));
f->Show();
}
Owner is intentionally nullptr because the form is created inside a DLL and I don't want it auto-destroyed by the EXE's main form.
The form displays correctly and behaves normally until I minimise it. As soon as it is minimised:
- the form does not appear on the taskbar;
- it also doesn't appear in the Alt+Tab list.
It seems to vanish, even though the process is still running. It becomes impossible to restore unless I explicitly call f->Show().
I checked common properties:
FormStyle = fsNormal;BorderIconsincludesbiSystemMenuandbiMinimize;BorderStyleis sizeable;WindowState = wsNormal.