Using C++Builder and opening a vcl subform with ShowModal() results with no taskbar entry and minimize doesn't minimize to taskbar (it's placed in lower left of the desktop).
Is there a setting I should enable for that to occur?
TIA!!
Using C++Builder and opening a vcl subform with ShowModal() results with no taskbar entry and minimize doesn't minimize to taskbar (it's placed in lower left of the desktop).
Is there a setting I should enable for that to occur?
TIA!!
Copyright © 2021 Jogjafile Inc.
Only a top-level unowned window that has the
WS_EX_APPWINDOWstyle applied to it will automatically appear on the Taskbar.By default, sub-forms are owned by either the active
TForm, theTApplication::MainForm, or theTApplicationwindow, depending on various criteria at the time the sub-form is displayed. Thus, why they do not appear on the Taskbar.If you want a sub-form to appear on the Taskbar, you can either:
override its virtual
CreateParams()method to set theTCreateParams::WndParentfield to0(or to the desktopHWNDreturned byGetDesktopWindow()), and to add theWS_EX_APPWINDOWstyle to theTCreateParams::ExStylefield.alternatively, use
ITaskbarList::AddTab()to manually add a button to the Taskbar and associate it with theHWNDreturned by the sub-form'sHandleproperty.