Window Under the Desktop like Drempels
-
One of the craziest screensavers I've ever seen was Geisswerks.com's Drempels screensaver, which also allowed you to run the screensaver as a desktop "wallpaper," under your desktop icons. I had a nice idea for a small calender program that runs on the desktop similar to how Drempels worked - creating something underneath the desktop icons (however I need it to also keep the current desktop wallpaper, so it would be sort of between the desktop icons and the desktop wallpaper). I know that the Desktop wallpaper is on a completely different window and that the icons are part of the "Program Manager" window (according to Spy++).
m_pProgmanWnd = CWnd::FindWindow(_T("Progman"), _T("Program Manager")); if(m_pProgmanWnd) { m_pTestWnd = new CTestWnd; m_pProgmanChildWnd = m_pProgmanWnd->GetWindow(GW_CHILD); if(!m_pTestWnd->CreateEx(0, NULL, NULL, WS_CHILD | WS_VISIBLE, CRect(0,0,GetSystemMetrics(SM_CXFULLSCREEN), GetSystemMetrics(SM_CYSCREEN)), m_pProgmanWnd, 23)) { TRACE("FAILED!"); } m_pProgmanChildWnd->SetParent(m_pTestWnd); m_pTestWnd->RedrawWindow(); m_pProgmanChildWnd->RedrawWindow(); m_pTestWnd->SetWindowPos(&wndBottom, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); }
I used this code to get the window object m_pTestWnd to show up on the desktop and switch places with the icon's window, but I can't seem to make it transparent or allow the desktop icons to continue being seen (IMPORTANT NOTE:Using this code requires the program to swap back the m_pProgmanChildWnd to be the child of m_pProgmanWnd, otherwise when the program exists, the desktop icons are lost, I think (I never tried it and don't really want to :)). Can anybody help me in creating an effect like what Geiss did? Sean Payne (Zero_Divide_1)