Solved

HIDE TASKBAR BUTTON

Posted on 2002-06-15
1
1,435 Views
Last Modified: 2007-12-19
HIDE TASKBAR BUTTON

Once when I put some form of application in taskbar as button with :

For example :

setWindowLong(Form3.handle,GWL_EXSTYLE,getWindowLong(Form3.handle,GWL_EXSTYLE) or WS_EX_APPWINDOW);

how to hide it ? (Remove that button from taskbar ?)

Thanks.
0
Comment
Question by:ghjlk
1 Comment
 
LVL 7

Accepted Solution

by:
Cynna earned 200 total points
Comment Utility
ghjlk,

This will remove Form3 taskbar button:


  // Affects only hidden windows:
  Form3.Hide;
  // Toggle WS_EX_APPWINDOW bit off:
  setWindowLong(Form3.handle,
               GWL_EXSTYLE,
               getWindowLong(Form3.handle,GWL_EXSTYLE) and (not WS_EX_APPWINDOW));
  Form3.Show;

Unfortunately, flickering is unavoidable - switching WS_EX_APPWINDOW bit off affects
only hidden windows.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

744 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

18 Experts available now in Live!

Get 1:1 Help Now