Displaying the child windows of an applicatin in the taskbar on minimizing

Posted on 2001-06-12
Last Modified: 2010-04-06
hello experts,

I am developing a chat application where the
messages from each of the online members will
be displayed in the window specific to the
member. On getting a new message to a
particular window I want to display that
particular window in the taskbar with the window state 'wsMinimized'.Since these windows are the
child windows of the application,it can't be
displayed in the task bar as minimized instead
it will appear above the taskbar as minimized.

Can you help me with some source code?..
Question by:mrk_raj
  • 2
LVL 17

Accepted Solution

geobul earned 200 total points
ID: 6180190
Define your child forms this way:

  TForm2 = class(TForm)
    { Private declarations }
    { Public declarations }
    procedure CreateParams(var Params:TCreateParams); override;

  Form2: TForm2;


{$R *.DFM}

procedure TForm2.CreateParams(var Params:TCreateParams);
 inherited CreateParams(Params);
 Params.ExStyle := Params.ExStyle or WS_EX_APPWINDOW;

When you are showing that form do:

procedure TForm1.Button1Click(Sender: TObject);
  Form2.WindowState := wsMinimized;
  Form2.Visible := true;

Regards, Geo
LVL 17

Expert Comment

ID: 6181724
Is there something wrong with my proposal to award it using 'B' option? It was fast and complete, I think.

Regards, Geo

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now