Home All Groups Group Topic Archive Search About

Force Refresh of Associated Icons

Author
18 May 2009 8:36 PM
k_zeon
Hi

I have created a way to change the Default Icon for a Filetype.

They wont display the correct Icons until I reboot my WinXP Pro

I have seen somewhere that you can Force the Icons to Refresh but cannot
remember

does anyone have the code or know how to achieve this

many thanks


Garry

Author
18 May 2009 8:47 PM
Jeff Johnson
"k_zeon" <silvermaine2***@googlemail.com> wrote in message
news:eSwGfh$1JHA.1900@TK2MSFTNGP04.phx.gbl...

> I have created a way to change the Default Icon for a Filetype.
>
> They wont display the correct Icons until I reboot my WinXP Pro
>
> I have seen somewhere that you can Force the Icons to Refresh but cannot
> remember
>
> does anyone have the code or know how to achieve this

I believe you need to send a message. Too lazy to look it up, but I think
it's similar to WM_SETTINGSCHANGE.
Author
19 May 2009 8:02 AM
k_zeon
thanks, just looked at the API viewer and cannot find this setting you
mentioned.maybe i need an updated API viewer

any other thoughts

thanks



Show quoteHide quote
"Jeff Johnson" <i.get@enough.spam> wrote in message
news:uGx1on$1JHA.4412@TK2MSFTNGP06.phx.gbl...
> "k_zeon" <silvermaine2***@googlemail.com> wrote in message
> news:eSwGfh$1JHA.1900@TK2MSFTNGP04.phx.gbl...
>
>> I have created a way to change the Default Icon for a Filetype.
>>
>> They wont display the correct Icons until I reboot my WinXP Pro
>>
>> I have seen somewhere that you can Force the Icons to Refresh but cannot
>> remember
>>
>> does anyone have the code or know how to achieve this
>
> I believe you need to send a message. Too lazy to look it up, but I think
> it's similar to WM_SETTINGSCHANGE.
>
Author
19 May 2009 9:19 AM
Nobody
"k_zeon" <silvermaine2***@googlemail.com> wrote in message
news:OhS$bgF2JHA.140@TK2MSFTNGP03.phx.gbl...
> thanks, just looked at the API viewer and cannot find this setting you
> mentioned.maybe i need an updated API viewer

http://www.activevb.de/rubriken/apiviewer/index-apiviewereng.html
Author
19 May 2009 11:36 AM
k_zeon
Thanks

I have now found WM_SETTINGSCHANGE but still don't know how to use it.

What declaration do i use to force the Icons to refresh so the new
Associated Icons display.

i hope you can help

thanks


Show quoteHide quote
"Nobody" <nob***@nobody.com> wrote in message
news:uGbbMMG2JHA.1380@TK2MSFTNGP05.phx.gbl...
> "k_zeon" <silvermaine2***@googlemail.com> wrote in message
> news:OhS$bgF2JHA.140@TK2MSFTNGP03.phx.gbl...
>> thanks, just looked at the API viewer and cannot find this setting you
>> mentioned.maybe i need an updated API viewer
>
> http://www.activevb.de/rubriken/apiviewer/index-apiviewereng.html
>
>
Author
19 May 2009 2:07 PM
Wolfgang Enzinger
On Mon, 18 May 2009 21:36:47 +0100, k_zeon wrote:

>I have created a way to change the Default Icon for a Filetype.
>
>They wont display the correct Icons until I reboot my WinXP Pro
>
>I have seen somewhere that you can Force the Icons to Refresh but cannot
>remember

Declare Sub SHChangeNotify Lib "Shell32.dll" (ByVal wEventId&, _
    ByVal uFlags&, ByVal dwItem1 As Any, ByVal dwItem2 As Any)

Const SHCNE_ASSOCCHANGED& = &H8000000

'******

SHChangeNotify SHCNE_ASSOCCHANGED, 0&, 0&, 0&

HTH,
Wolfgang