Here's a bug I have not been able to figure out. If you have Windows XP or Vista and you have enabled the "Show shadows under menus" style in your visual styles, then the Windows Start Menu leaves a persistant shadow on the desktop when Circle Dock is used to open it. The screen shot below illustrates my point:
Windows Start Menu Shadow Residue Bug1
The code I'm using to call the Windows Start Menu is quite simple (C#):
IntPtr StartMenuHandle = (IntPtr)Pinvoke.Win32.FindWindow("DV2ControlHost", null);
IntPtr taskBarWnd = (IntPtr)Pinvoke.Win32.FindWindow("Shell_TrayWnd", null);
IntPtr startWnd = Pinvoke.Win32.FindWindowEx(taskBarWnd, IntPtr.Zero, "Button", "Start");
Pinvoke.Win32.SetWindowPos(taskBarWnd, IntPtr.Zero, 0, 0, 0, 0, Pinvoke.Win32.SWP_NOSIZE | Pinvoke.Win32.SWP_SHOWWINDOW |
Pinvoke.Win32.SWP_NOMOVE);
Pinvoke.Win32.SetWindowPos(startWnd, IntPtr.Zero, 0, 0, 0, 0, Pinvoke.Win32.SWP_NOSIZE | Pinvoke.Win32.SWP_SHOWWINDOW |
Pinvoke.Win32.SWP_NOMOVE);
Pinvoke.Win32.SetWindowPos(StartMenuHandle, IntPtr.Zero, StartMenuBestPos.X, StartMenuBestPos.Y, 0, 0, Pinvoke.Win32.SWP_NOSIZE |
Pinvoke.Win32.SWP_SHOWWINDOW);
The StartMenuHandle is the handle to the start menu itself and the other handles are for the start button and the taskbar. I think this may actually be a bug with Windows itself. Any thoughts or solutions?