Solved

HIDE TASKBAR BUTTON

Posted on 2002-06-15
1
1,454 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
[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
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

729 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