Solved

Hiding Taskbar Window Buttons

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

746 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

11 Experts available now in Live!

Get 1:1 Help Now