How trigger taskbar bounds recalculation?



I am writing an application that manipulates the results of GetMonitorInfo()
to create a desktop smaller than the physical resolution (using the area
outside of the lower-resolution desktop for my own purposes). This works
fine for windows and icons, but only occasionally does the Taskbar
recalculate and reposition itself in the lower-resolution desktop. I've
tried a couple things that I thought might work, like hiding and unhiding
the taskbar and refreshing the desktop, but they don't do it. I can achieve
the effect by killing the explorer process and restarting the shell, but
obviously that's pretty drastic. I'm sure I'm missing something obvious,
like a variant on SHNotifyChange() or a WM_ that I can post, but I haven't
gotten anywhere. Any thoughts?

TIA,
Larry
http://www.knowing.net



.