Solved

HIDE TASKBAR BUTTON

Posted on 2002-06-15
1
1,448 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
ID: 7080735
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

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

827 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