Could not refresh the Tree View of Windows Explorer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shinichi81
    New Member
    • Mar 2007
    • 7

    Could not refresh the Tree View of Windows Explorer

    Could anyone help me?
    After updating icon for a drive, for example C drive by specifying icon file at HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Explorer\Drive Icons\C\Default Icon, I want to refresh at Windows Explorer and below is processing flow:
    - Read a metrics value, for example "Shell Icon Size" at HKEY_CURRENT_US ER\Control Panel\Desktop\W indowMetrics
    - Decrease icon size by 1
    - SendMessage(HWN D_BROADCAST, WM_COMMAND, 106597, 0);
    - Increase icon size by 1 (back to original value)
    - SendMessage(HWN D_BROADCAST, WM_COMMAND, 106597, 0);

    I checked on both Win2K & XP, below is result:
    - On Win2K, icon of C drive is updated on both List view & Tree view (right & left panels of Windows Explorer)
    - On WinXP, icon of C drive is updated only on List view & Tree view (right panel of Windows Explorer). How to solve this problem?

    Many thanks,
  • shinichi81
    New Member
    • Mar 2007
    • 7

    #2
    There is 1 more important point:
    - I select "My Computer" and collapse it (to hide C drive) then perform refreshing (as my previous post). After that, expand "My Computer" again, the icon is updated (of-couse I mean on WinXP).

    Please help me!

    Comment

    • DeMan
      Top Contributor
      • Nov 2006
      • 1799

      #3
      I'm not sure I quite follow, do you mean you press F5 to refresh and then get an error?

      Comment

      • shinichi81
        New Member
        • Mar 2007
        • 7

        #4
        Thanks DeMan for your reply.
        I could solve this problem now. I used SendMessageTime out(HWND_BROADC AST, WM_SETTINGCHANG E...) instead of sending WM_COMMAND. By using this, drive icons will be updated on both tree view & list view.

        Comment

        • shinichi81
          New Member
          • Mar 2007
          • 7

          #5
          Sorry for a bit further question.

          Now in 32bit environment, If I update icon information, for example:
          - Key: HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Explorer\Drive Icons\C\Default Icon
          - Set default value = C:\Windows\Syst em32\Shell32.dl l,12

          the icon of C drive will be changed.
          Now I want to support this feature on 64bit environment. I dont know if I update above key, the drive icon will be updated or not (event WOW64 will update another key actually). If you know, please help me about this (sorry because I dont have any 64bit environment simulator).

          Many thanks for your help!

          Comment

          Working...