Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

replacing the desktop

0 views
Skip to first unread message

lenox

unread,
Jun 18, 2002, 9:00:49 PM6/18/02
to
Hi:

I want to show a form but I want this form to be the lowest z-level window
(like it was the desktop window)
How can I do it? any idea?

thanx in advance

Remy Lebeau [TeamB]

unread,
Jun 18, 2002, 8:17:18 PM6/18/02
to
Try using the Win32 API function SetWindowPos() with the HWND_BOTTOM flag.


Gambit

"lenox" <le...@ono.com> wrote in message news:3d0fc8c8_2@dnews...

Fishface

unread,
Jun 19, 2002, 1:57:43 AM6/19/02
to
lenox wrote:
> I want to show a form but I want this form to be the lowest
> z-level window (like it was the desktop window)
> How can I do it? any idea?

I have this little C program in my Quick Launch Bar and it alternately
hides and shows all the icons on the desktop (to show the wallpaper).
Perhaps it may be of some use.

#include <windows.h>

int STDCALL
WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow)
{
HWND deskwin = FindWindow("Progman", "Program Manager");
if (deskwin)
{
ShowWindow(deskwin,IsWindowVisible(deskwin)? SW_HIDE : SW_SHOW);
}
return 0;
}


lenox

unread,
Jun 19, 2002, 4:15:08 AM6/19/02
to
Thanks a lot. It was very helpful.

Bye.

0 new messages