 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
oLiVeS Guest
|
Posted: Fri Oct 21, 2005 6:51 am Post subject: Taskbar |
|
|
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
|
Posted: Fri Oct 21, 2005 7:53 am Post subject: Re: Taskbar |
|
|
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
|
Posted: Fri Oct 21, 2005 11:18 am Post subject: Re: Taskbar |
|
|
| 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 |
|
 |
|
|
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
|
|