Sign in to follow this  
Followers 0
w_sp8er

Problem W/ Taskbar Properties

6 posts in this topic

#1 ·  Posted (edited)

Hi all,

I'm having a problem with the Taskbar Properties. What I'm trying to do is to make sure that the 'Show Small Icons in Start Menu' item in "Taskbar Properties\Start Menu\Customize" is ticked & that 'Expand Network Connections' is also ticked.

Currently I am skipping this as I don't have any way of checking if either are ticked already or not. They are both contained inside a 'SysTreeView321' Control which doesn't return what state they are in.

It would be much appreciated if anyone can help me with some code to do the above.

w_sp8er

Edited by w_sp8er

Share this post


Link to post
Share on other sites



Foe small Icons just use RegWrite to set the registry value

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\SmallIcons, smallicons "yes"


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

Do you need to restart for it to take effect?

Share this post


Link to post
Share on other sites

didn't work

tried

RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartMenu\StartMenu\SmallIcons", _
         "DefaultValue", "REG_DWORD", "1")

also nogo :whistle:

Share this post


Link to post
Share on other sites

Try calling EnvUpdate() after making the change. If that doesn't work, try rebooting, or you might be able kill explorer.exe and restart it. In any event, you're going to have to cause some event to make explorer reload...

Share this post


Link to post
Share on other sites

A function that could notify the entire system would be a variation on the EnvUpdate. Basicly EndUpdate broadcasts a system wide WM_SETTINGCHANGE message for the environment. A broadcast could also be sent regarding the specific registry branch.

Here is the API info:

WM_SETTINGCHANGE

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0