BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Taskbar

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API)
View previous topic :: View next topic  
Author Message
oLiVeS
Guest





PostPosted: Fri Oct 21, 2005 6:51 am    Post subject: Taskbar Reply with quote



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)


Back to top
Martin Golm
Guest





PostPosted: Fri Oct 21, 2005 7:53 am    Post subject: Re: Taskbar Reply with quote



oLiVeS schrieb:
Quote:

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


Back to top
oLiVeS
Guest





PostPosted: Fri Oct 21, 2005 11:18 am    Post subject: Re: Taskbar Reply with quote



Quote:
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

Perfect, works great.
Thanks



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.