Solved

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

Posted on 2001-06-12
2
166 Views
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?..
0
Comment
Question by:mrk_raj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 17

Accepted Solution

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

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

var
  Form2: TForm2;

implementation

{$R *.DFM}

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


When you are showing that form do:

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

Regards, Geo
0
 
LVL 17

Expert Comment

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

Regards, Geo
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

732 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