开发者

show/hide desktop icons from c++ application

开发者 https://www.devze.com 2022-12-09 21:27 出处:网络
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 o

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.


SHGetSetSettings fHideIcons


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

0

精彩评论

暂无评论...
验证码 换一张
取 消