🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Taskbar

#4977
From: Martin Golm
Date: Fri, 21 Oct 2005 07:53
15 lines
1485 bytes
oLiVeS schrieb:
> 
> I want to display a form in the lower right corner of the desktop so I got
> two issues.
> 1) How do I get the Width and Hight of the Taskbar
> 2) Where is the taskbar currently placed (Top, Left, Right, or Bottom)

Call SystemParametersInfo() with the SPI_GETWORKAREA parameter. This
will give you the area of the screen that's not covered by the taskbar.

RECT work_area;
SystemParametersInfo(SPI_GETWORKAREA, 0, &work_area, 0);

--
Martin
Technical Details
Message-ID: <43589E6C.DC8078F7@gmx.de>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!213.239.142.2.MISMATCH!feeder.xsnews.nl!83.128.0.11.MISMATCH!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43588fe1$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,5096d911ced9c48f
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Message-ID: <43589E6C.DC8078F7@gmx.de>
Date: Fri, 21 Oct 2005 09:53:16 +0200
From: Martin Golm <golm@gmx.de>
Organization: -
X-Mailer: Mozilla 4.78 [de] (Windows NT 5.0; U)
X-Accept-Language: de
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Taskbar
References: <43588fe1$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 84.179.217.130
X-Trace: newsgroups.borland.com 1129881012 84.179.217.130 (21 Oct 2005 00:50:12 -0700)
Lines: 16
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!213.239.142.2.MISMATCH!feeder.xsnews.nl!83.128.0.11.MISMATCH!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail