Solved

Hiding Taskbar Window Buttons

Posted on 1998-05-18
3
227 Views
Last Modified: 2010-04-06
I have been trying to unsuccesfully create a Delphi 2.0 App which does not place a Window Button on the Taskbar. According to the Win32 Online Help, if a Window is created with the CreateWindowEx() API call (which Delphi uses) and a style of WS_EX_TOOLWINDOW is specified, a Window Button will not be created. The delphi help suggests overriding the main form's CreateParams() method so that the style is set before the Window is created. I have tried this, and while I have managed to change the style of the window, I have not been able to stop the Window Button from appearing on the taskbar

Where am I going wrong?
0
Comment
Question by:sonique
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
JimBob091197 earned 200 total points
ID: 1346192
Hi

The window on the taskbar is the TApplication's window, NOT the main form.  Add this to your main form's OnShow event:

ShowWindow(Application.Handle, SW_HIDE);

Cheers,
JB
0
 

Author Comment

by:sonique
ID: 1346193
The hard ones are always easy in the end ... many thanks!

PW
0
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1346194
Hehe...  there's a lot of truth in that!

Cheers
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Intraweb submit form as a POST request 4 327
Dev express lookupcombo 3 35
firemonkey Android Listview Sort items 7 53
shape, triangle, dbctrlgrid 3 17
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…

828 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