Author: Tomas Rutkauskas
How to minimize a secondary-form to the taskbar
Answer:
You can minimize a secondary-form to the taskbar using the following piece of code:
1 type2 TForm = class(TForm)
3 ...
4 private5 { Private declarations }6 procedure CreateParams(var Params: TCreateParams); override;
7 end;
8 9 implementation10 11 .....
12 13 procedure TForm.CreateParams(var Params: TCreateParams);
14 begin15 inherited CreateParams(Params);
16 { Set the extended style for iconizing to the taskbar }17 { See CreateWindowEx }18 with Params do19 exStyle := exStyle or WS_EX_APPWINDOW;
20 end;