• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 277
  • Last Modified:

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...
0
virus05
Asked:
virus05
  • 2
1 Solution
 
ceoworksCommented:
0
 
ceoworksCommented:
2) HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\NoViewContextMenu.. 0: enable, 1: disable
0
 
blackcat67Commented:
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;
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now