Solved

Hiding Taskbar Window Buttons

Posted on 1998-05-18
3
228 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
[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
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

752 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