Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

whats the syntax for SHChangeNotify

0 views
Skip to first unread message

David Spooner

unread,
Jul 29, 1996, 3:00:00 AM7/29/96
to

I'm writing a shell name space extension. It uses two icons to show its
state (like the recycle bin has full & empty) I use the same trick as the
recycle bin to change the icon ie having two extra keys under
....\DefaultIcon and copying the apropriet one to the default value. ( look
at the Recylel bin registry subkey to see what I mean). Any way to get the
desktop to refesh and show the updated icon, I'm using...

SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_FLUSHNOWAIT, 0, 0);

... this refreshes the entire desktop, when all I want to do is refresh
just one icon, there are flags other than SHCNE_ASSOCCHANGED but I can't
find the documentation for these. Does anyone have more info on this
function. (I've got the SDK,DDK,MSDN cdroms)

Thanks
David


Raymond Chen

unread,
Jul 29, 1996, 3:00:00 AM7/29/96
to

On 29 Jul 1996 10:57:29 GMT, "David Spooner" <dol...@dircon.co.uk>
wrote:

>all I want to do is refresh just one icon

Use

SHChangeNotify(SHCNE_UPDATEIMAGE, SHCNF_DWORD, (LPVOID)iIcon, 0);

where iIcon is the index in the system image list of the icon that you
changed.

--
(Note that my return address is intentionally invalid in order
to foil electronic mailing list generation software.)

0 new messages