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,
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,
Comment