Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Placing progress bar...


1 reply to this topic

gronchi

gronchi
  • Members
  • 71 posts

Posted 23 September 2002 - 14:58

Hi to all,
in my setup the progress bar is placed with:
PlaceWindow (STATUSDLG, CENTERED, LOWER_RIGHT, LOWER_RIGHT);
that is centered on the horizontal axis and lower to the bottom of the screen (vertical axis).
Well, it's ok for the horizontal position but not for the vertical position because the box is (half) hidden under the Windows Task Bar.
I should avoid to give absolute path with pixel number:
PlaceWindow (STATUSDLG, CENTERED, n, LOWER_RIGHT);
Where n = 40, 50, 100 and so on...
Is there a way to calculate the bottom of the screen starting from the upper edge of the Windows Task Bar?


Thanks.
Ciao, Giuseppe


P.S. don't say me to catch the Windows Task Bar and bring it around the screen...

guy

guy
  • Members
  • 19 posts

Posted 24 September 2002 - 16:14

Hi

Try to use the following function (from windows API) to get the size of the working area: monitor size without the task bar.


RECT r
SystemParametersInfo(SPI_GETWORKAREA, 0, &r, 0)


for more informatin look at the MSDN.

Guy
Guy