Question : Hiding child windows from Taskbar

We have a set of dll functions, when we use a form from the function we use

Application.CreateForm(TfmForm,fmForm);

if we need a child form from this we have set the borderstyle to bsDialog and create the child form using  

fmChildForm:=TfmChildForm.Create(fmForm);

This is all fine but the fmChildForm appears in the TaskBar

We could use bsToolWindow but the form style is not very good.

Any suggestions on how to hide the fmChildForm from the TaskBar

Answer : Hiding child windows from Taskbar

procedure TfmForm.FormCreate(Sender: TObject) ;
 begin
 ShowWindow(fmChildForm.Handle, SW_HIDE) ;
 SetWindowLong(fmChildForm.Handle, GWL_EXSTYLE, getWindowLong(fmChildForm.Handle, GWL_EXSTYLE) or WS_EX_TOOLWINDOW) ;
 ShowWindow(fmChildForm.Handle, SW_SHOW) ;
 end;
 
Random Solutions  
 
programming4us programming4us