MCPcopy Create free account
hub / github.com/bumptop/BumpTop / attachToDesktopWindow

Method attachToDesktopWindow

trunk/win/Source/BT_WindowsOS.cpp:5452–5464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5450}
5451
5452void 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

Callers 4

SetWindowStateMethod · 0.95
OnTimerMethod · 0.80
OnSizeMethod · 0.80
MoveToNextMonitorMethod · 0.80

Calls 2

FindWindowFunction · 0.85
SetParentFunction · 0.50

Tested by

no test coverage detected