Toggle desktop icons

  • Thread starter Thread starter Ted
  • Start date Start date
T

Ted

Hello
I would like a little toggle in my quicklaunck bar which would hide all the
desktop icons so I can see my wallpaper. Is there such a thingy?
Thanks
Tes
 
Thanks Raj. I'v been using this comp for years and never noticed that:(
Thanks again.
Ted
 
Ted said:
Hello
I would like a little toggle in my quicklaunck bar which would hide all the
desktop icons so I can see my wallpaper. Is there such a thingy?

In Delphi ...

var
DesktopWnd : HWND;

procedure TForm1.HideDesktopIcons;
begin
DesktopWnd := FindWindow('Progman', 'Program Manager');
if DesktopWnd > 0 then begin
DesktopWnd := FindWindowEx(DesktopWnd, 0, 'SHELLDLL_DefView', nil);
if DesktopWnd > 0 then
DesktopWnd := FindWindowEx(DesktopWnd, 0, 'SysListView32', nil);
end; { if DesktopWnd > 0}
if DesktopWnd = 0 then
ShowMessage('Error - could not find desktop')
else
ShowWindow(DesktopWnd, SW_HIDE);
end;

procedure TForm1.ShowDesktopIcons;
begin
if DesktopWnd > 0 then
ShowWindow(DesktopWnd, SW_SHOW);
end;

.... but if you must, you could translate it to C <g>.

Alan Lloyd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top