|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Screen.PrimaryScreen.WorkingArea questionScreen.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 ? 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 ? > > 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 ? >> >> > > 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 ? >>> >>> >> >> > >
Other interesting topics
Obstruct the Developpers to Develop and Deploy a newer version
Dynamic Context Menu Items Data design question No text on MsgBox RichTextBox auto scroll to end Embed Word into WinForm application - How? GDI+ Bitmap drawing vs GDI+ PrintDocument drawing Menu Events MouseWheel How to set alternatingbackcolor for grid with combobox column |
|||||||||||||||||||||||