?
Solved

Hide the Taskbar

Posted on 2002-06-21
2
Medium Priority
?
572 Views
Last Modified: 2010-04-04
Is there any delphi 5 routine(or any other way) that I can hide the task bar in Windows 98.
0
Comment
Question by:alshepstone
[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
2 Comments
 
LVL 5

Expert Comment

by:alanwhincup
ID: 7098373
Here you are:

// Hide Taskbar
procedure TForm1.Button1Click(Sender: TObject);
var
  H : HWND;
begin
  H := FindWindow('Shell_TrayWnd', nil);
  if H <> 0 then
    ShowWindow(H, SW_HIDE);
end;

// Show Taskbar
procedure TForm1.Button2Click(Sender: TObject);
var
  H : HWND;
begin
  H := FindWindow('Shell_TrayWnd', nil);
  if H <> 0 then
    ShowWindow(H, SW_SHOW);
end;

Cheers,

Alan
0
 
LVL 5

Accepted Solution

by:
alanwhincup earned 200 total points
ID: 7098376
Or if you wish to keep the taskbar visible but disable it then try the below:


// Disable Taskbar
procedure TForm1.Button1Click(Sender: TObject);
var
  H : HWND;
begin
  H := FindWindow('Shell_TrayWnd', nil);
  if H <> 0 then
    EnableWindow(H, False);
end;

// Enable Taskbar
procedure TForm1.Button2Click(Sender: TObject);
var
  H : HWND;
begin
  H := FindWindow('Shell_TrayWnd', nil);
  if H <> 0 then
    EnableWindow(H, True);
end;
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

719 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