Link to home
Start Free TrialLog in
Avatar of virus05
virus05

asked on

hide desktop icons in xp...

Hello... Can someone show me a code for 1) hidding desktop icons in xp, 2) disabling rightclick in xp desktop... Thanks... I'm using delphi 7...
ASKER CERTIFIED SOLUTION
Avatar of ceoworks
ceoworks

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ceoworks
ceoworks

2) HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\NoViewContextMenu.. 0: enable, 1: disable
procedure showdesktop(Show: Boolean);
var
  wnd: HWND;
begin
  wnd := FindWindow('progman', nil );
  if wnd <> 0 then
    if show then
      ShowWindow( wnd, SW_SHOW )
    else
      ShowWindow( wnd, SW_HIDE )
  else
    showmessage( 'Desktop not found' );
end;