It would seem that the taskbar does have a standard name "Shell_TrayWnd"
from which you can get it's location. There seems to be plenty of examples
dealing with this and the FindWindowEx command, so thank you for pointing me
in the right direction!
I'm also considering your suggestion about allowing the user to move the
pop-up to a desired location. To be honest, it's something that never even
crossed my mind but I guess it gives the user more flexibility in how it's
displayed.
Thanks again.
Hi,
I want a form to pop up on hovering over a notifyicon (instead of a
tooltip)
and i want it to display in the vicinity of the taskbar. To do this, I
need
to know where the taskbar is located.
I'm curious, why would you need this?
Thanks,
Seth Rowe [MVP]
http://sethrowe.blogspot.com/
You might be able to use the FindWindowEx WinAPI function to find the
taskbar window if it has a standard name (couldn't tell you if it
does). Once you have a reference to it you should be able to find it's
location.
What I would suggest however, is to have the form initially pop-up in
the bottom-right corner of the window. Then make sure that the window
can be moved by the user and simply remember where the form was
dragged. That way the user can have the form pop-up where ever they
want (a very good thing) and your job will be much easier, especially
from a testing standpoint.
Thanks,
Seth Rowe [MVP]
http://sethrowe.blogspot.com/