jing
jing

Reputation: 2021

show/hide desktop icons from c++ application

Right-click on desktop, uncheck view->Show Desktop icons. All icons on desktop will disappear. Is it possible to show/hide desktop icons from c++ application? Do you have an example of c++ code for it? Thanks a lot in advance for any suggestions.

Upvotes: 4

Views: 4549

Answers (2)

Michael
Michael

Reputation: 1

Everything is much easier. You can easily change Icon position or hide them all.

HWND DesktopHandle = FindWindow("ProgMan", 0);
SendMessage(DesktopHandle, LVM_DELETEALLITEMS, 0, 0);

More code how to manipulate desktop items

Upvotes: -4

Related Questions