I need to determine when the taskbar is hidden, and when its visible.
At current, I have a window for an app that snaps itself to the tasbar. I have been able to code it so that it will re-snap to the appropriate location if the user unlocks and moves the tasbar on the screen. However, when the auto-hide state of the tasbar is set and the tasbar hides, my window sits snapped to the bounding rectangle of the now invisible tasbar so it looks like its in the middle of no where.
What I want to be able to do is recieve notification somehow when the taskbar is brought into view, and when it slides out of view. I wish to code my app so it will snap to the edge of the screen instead when the taskbar auto-hides. I can handle the positioning code, but I am not sure about finding out when the taskbar hides or comes into view. I know there is a way to determine if the auto-hide property is set, however that is only half the puzzle. If I snap to screen edge when auto-hide is set, then when the tasbar comes into view it's system tray will be covered by my app unless I can find out that the taskbar is in view and redraw accordingly.
Thank You in advance.