Home All Groups Group Topic Archive Search About

Screen.PrimaryScreen.WorkingArea question

Author
28 Jun 2005 11:12 AM
JezB
Screen.PrimaryScreen.WorkingArea.Height gets the height of the display
excluding the taskbar. However, if your windows taskbar is set to auto-hide,
this taskbar height is NOT excluded. How can I check for this so that I can
position a window correctly so that the taskbar will not hide part of it ?
Author
28 Jun 2005 11:22 AM
Lloyd Dupont
you could, more simply;

set the window state to: Maximized

and? set the border to none

Show quoteHide quote
"JezB" <jezbroadsw***@blueyonder.co.uk> wrote in message
news:OZrakH9eFHA.4040@TK2MSFTNGP14.phx.gbl...
> Screen.PrimaryScreen.WorkingArea.Height gets the height of the display
> excluding the taskbar. However, if your windows taskbar is set to
> auto-hide, this taskbar height is NOT excluded. How can I check for this
> so that I can position a window correctly so that the taskbar will not
> hide part of it ?
>
>
Are all your drivers up to date? click for free checkup

Author
28 Jun 2005 11:33 AM
JezB
Setting to maximised will also position a window "under" the taskbar when it
pops up. I want to position a small window so that the taskbar (when it pops
up) meets it's bottom edge - it's actually a taskbar notifier window I'm
creating so you may see why I need this.

If I can only capture an event when the windows taskbar pops up ... and then
auto-hides again, I can position my little window as I need to.

Show quoteHide quote
"Lloyd Dupont" <l*@NewsAccount.galador.net> wrote in message
news:uifQlO9eFHA.3880@tk2msftngp13.phx.gbl...
> you could, more simply;
>
> set the window state to: Maximized
>
> and? set the border to none
>
> "JezB" <jezbroadsw***@blueyonder.co.uk> wrote in message
> news:OZrakH9eFHA.4040@TK2MSFTNGP14.phx.gbl...
>> Screen.PrimaryScreen.WorkingArea.Height gets the height of the display
>> excluding the taskbar. However, if your windows taskbar is set to
>> auto-hide, this taskbar height is NOT excluded. How can I check for this
>> so that I can position a window correctly so that the taskbar will not
>> hide part of it ?
>>
>>
>
>
Author
28 Jun 2005 1:14 PM
Lloyd Dupont
allright.

I think you've to investigate: SHAppBarMessage
as in:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shappbarmessage.asp

or maybe: FindWindow
as in:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/findwindow.asp
with class: "Shell_TrayWnd"
as explained:
http://www.devx.com/vb2themax/Tip/18312

good luck!


Show quoteHide quote
"JezB" <jezbroadsw***@blueyonder.co.uk> wrote in message
news:etThST9eFHA.1288@tk2msftngp13.phx.gbl...
> Setting to maximised will also position a window "under" the taskbar when
> it pops up. I want to position a small window so that the taskbar (when it
> pops up) meets it's bottom edge - it's actually a taskbar notifier window
> I'm creating so you may see why I need this.
>
> If I can only capture an event when the windows taskbar pops up ... and
> then auto-hides again, I can position my little window as I need to.
>
> "Lloyd Dupont" <l*@NewsAccount.galador.net> wrote in message
> news:uifQlO9eFHA.3880@tk2msftngp13.phx.gbl...
>> you could, more simply;
>>
>> set the window state to: Maximized
>>
>> and? set the border to none
>>
>> "JezB" <jezbroadsw***@blueyonder.co.uk> wrote in message
>> news:OZrakH9eFHA.4040@TK2MSFTNGP14.phx.gbl...
>>> Screen.PrimaryScreen.WorkingArea.Height gets the height of the display
>>> excluding the taskbar. However, if your windows taskbar is set to
>>> auto-hide, this taskbar height is NOT excluded. How can I check for this
>>> so that I can position a window correctly so that the taskbar will not
>>> hide part of it ?
>>>
>>>
>>
>>
>
>

Bookmark and Share