Move / Refresh Windows Taskbar
-
I have written some code to change the screen resolution and depth then return them to their original settings. All works fine, but the Windows taskbar moves occasionally to about midscreen. Is there a function which automatically refreshes the taskbar to the bottom of any reresed window? Or a windows function I can use to move the taskbar to the required bottom edge of the visible screen? Many thanks ;) u6ik -- modified at 7:43 Monday 16th January, 2006
-
I have written some code to change the screen resolution and depth then return them to their original settings. All works fine, but the Windows taskbar moves occasionally to about midscreen. Is there a function which automatically refreshes the taskbar to the bottom of any reresed window? Or a windows function I can use to move the taskbar to the required bottom edge of the visible screen? Many thanks ;) u6ik -- modified at 7:43 Monday 16th January, 2006
Well, after a bit of digging I found the answer myself. SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, NULL, NULL); You need to notify the shell of a change and force a refresh. No need to move the taskbar around yourself, Windows realises there has been a change and corrects the taskbar positioning. All good :-D u6ik