
July 6th, 2005, 06:33 AM
|
 |
Contributing User
|
|
|
|
|
Delphi :: InternetSetOption
Hi
I'm hoping there are a couple of experienced Delphi people knocking about...
I'm a novice Delphi developer. I'm writing an application which will allow me to toggle the proxy on/off in the Internet Explorer settings. I have a tray-icon driven application which is working fine. I have also worked out how to install a button in IE and, again, this is working fine
Once I have toggled the proxy in the registry, I am using the following to notify IE of the change:
Code:
InternetSetOption(NIL, INTERNET_OPTION_SETTINGS_CHANGED, NIL, 0);
Once I have toggled the proxy, I would like to change the icon of the button in IE to indicate whether the proxy is on or off but can't work out how to do this. I'm comfortable with changing the icon in the registry:
Code:
WriteString('Icon', Path + 'ToggleProxy-Green.ico');
However, the change is not reflected until the button is basically removed and readded. Is there anyway to force IE to refresh a button (or all buttons) on the toolbar?
Thanks in advance
__________________
selwonk
If I've posted some code above, you might think it looks a bit simplistic. It might be. I'd rather people tried the next step themselves rather than getting a full solution on a plate. That way they learn more!
|