Question:
Will be cool if we can hide all icon at desktop area. Can we do that with delphi?
Answer:
Sure, here the code:
procedure TForm1.Button2Click(Sender: TObject);
begin
ShowWindow(DesktopListViewHandle, SW_HIDE);
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
DesktopListViewHandle:=FindWindow('ProgMan', nil);
DesktopListViewHandle:=GetWindow(DesktopListViewHandle, GW_CHILD);
DesktopListViewHandle:=GetWindow(DesktopListViewHandle, GW_CHILD);
end;
// Show icons on the Desktop
procedure TForm1.Button1Click(Sender: TObject);
begin
ShowWindow(DesktopListViewHandle, SW_SHOW);
end;
Subscribe to:
Post Comments (Atom)






0 Responses so far.
Post a Comment
Thank you for your comment.
Any request and idea are welcome.