Re: Can't use Win32 SHELLSTATE structure!
Posted: Sun May 11, 2014 12:19 am
SHGetSetSettings is like you said, its deprecated. However, it still exists and working under Windows 7 x64. However at any time SHGetSetSettings can be removed, like they enjoy pointing out. Who knows though.. maybe they finally removed this function from Windows 8?
You was actually onto something. The problem was you were expecting that final step to actually hide desktop icons on the spot. It would toggle the "Show Desktop Icons" menu item state. This also uses registry item ' HideIcons ' which it toggled with. If you would have re-booted the computer, it would have been obvious it worked the way it was intended to.
I originally thought SHChangeNotify could bring us with that final step. While it refreshed the desktop, it would not consider the Show or Hidden states.
Therefore adding the following, would suffice.
You was actually onto something. The problem was you were expecting that final step to actually hide desktop icons on the spot. It would toggle the "Show Desktop Icons" menu item state. This also uses registry item ' HideIcons ' which it toggled with. If you would have re-booted the computer, it would have been obvious it worked the way it was intended to.
I originally thought SHChangeNotify could bring us with that final step. While it refreshed the desktop, it would not consider the Show or Hidden states.
Therefore adding the following, would suffice.
Code: Select all
ShowWindow_(FindWindow_(0, "Program Manager"), #SW_HIDE)