| 5450 | } |
| 5451 | |
| 5452 | void WindowsSystem::attachToDesktopWindow() |
| 5453 | { |
| 5454 | if (IsWindowsVersionGreaterThanOrEqualTo(Windows7)) |
| 5455 | { |
| 5456 | // EnumProc will handle attaching the bumptop window to the desktop |
| 5457 | ::EnumWindows(EnumProc, (LPARAM)this); |
| 5458 | } |
| 5459 | else // All other versions of windows have the desktop under the Progman window |
| 5460 | { |
| 5461 | HWND hWnd = FindWindowEx(FindWindow(L"Progman", NULL), NULL, L"SHELLDLL_DefView", NULL); |
| 5462 | SetParent(windowHwnd, hWnd); |
| 5463 | } |
| 5464 | } |
| 5465 | |
| 5466 | |
| 5467 | // Static method that is called when executing EnumWindows |
no test coverage detected