🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #368

Fow to create a full screen application?

#368
From: Chris F
Date: Thu, 17 Apr 2008 22:46
27 lines
1635 bytes
Hi

I'm writing a small application and I would really like it if I could make 
the application cover the full screen including the taskbar.  I've had a 
look on Google and only come up with code like the following

Form1->FormStyle = fsStayOnTop;
 Form1->Width = Screen->Width;
 Form1->Height = Screen->Height;
 Form1->BorderStyle = bsNone;
 Form1->Top = 0;
 Form1->Left = 0;
//and to hide the taskbar "FindWindow gets the handle of the taskbar"
 ShowWindow(FindWindow("Shell_TrayWnd", NULL), SW_HIDE);

//to show the taskbar again
 ShowWindow(FindWindow("Shell_TrayWnd", NULL), SW_SHOW); Form1->FormStyle = 
fsStayOnTop;

But I really am not comfortable with hiding the user's taskbar in this way. 
Is there another way?

My app is a standard BCB6 VCL app.

Best regards

Chris F 
Technical Details
Message-ID: <4807d329@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!217.73.144.45.MISMATCH!feeder2.ecngs.de!ecngs!feeder.ecngs.de!news.isoc.lu!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Chris F" <no@spam.com>
From: "Chris F" <no@spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Fow to create a full screen application?
Date: Thu, 17 Apr 2008 23:46:00 +0100
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 87.102.15.194
Message-ID: <4807d329@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1208472361 87.102.15.194 (17 Apr 2008 15:46:01 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!217.73.144.45.MISMATCH!feeder2.ecngs.de!ecngs!feeder.ecngs.de!news.isoc.lu!newsgroups.borland.com!not-for-mail