I'd like to get and set the desktop icons sizes in Windows Vista and 7 - now the desktop allows to resize the icons dinamically with Ctrl-MouseWheel and I'd like to do it using C#. Yes, I can send the WM_MOUSEWHEEL
message to the desktop listview handle, but that has two disadvantages:
I'd like to know if there is any way to get the current icon size and set it to another size programatically
I know you can get the size of the icons fairly easily using the SystemInformation class . It seems there is no setter, so you may have to dig deeper and use the system's SystemParameterInfo()
function . See the SPI_GETICONMETRICS
and SPI_SETICONMETRICS
parameters.
It seems the only way to this is through the registry. See towards the middle of this page ("When in Windows").
Update:
Ok, I see what you are saying now. You need to use the desktop's IFolderView (CurrentViewMode) or IFolderView2 (ViewModeAndIconSize).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.