[python-win32] shell.SHChangeNotify failed to refresh icons

Mark Hammond mhammond at skippinet.com.au
Fri Feb 15 01:26:05 CET 2008


> I just found out I was passing SHCNF_FLUSHNOWAIT flag to the calls. By
> changing the flag to SHCNF_FLUSH, the icons are refreshed correctly
> (at least most of the time). Though the delay on refreshing is
> noticeable from one icon to the other. But that's not intolerable for
> now.

That is strange.  Maybe that flag determines if windows will collapse them down.

> BTW, is there any ill effect in the use of SHCNF_FLUSH? I don't
> understand the reason why SHCNF_FLUSHNOWAIT would not work though.

The only effect is the obvious documented one - you block until all notifications have been processed.  It depends on your app how ill that effect is :)

Cheers,

Mark



More information about the python-win32 mailing list