Вниз
Скачать: CL | DM;

Как обновить свойства обозревателя ?   Найти похожие ветки 

 
Алекс А   (2004-07-06 05:42) [0]

Там в свойствах обозревателя, в Оформлении, можно мышкой отключить настройки цвета указанные на вэб-страницах, а можно их отключить через реестр в пункте HKCU\Software\Microsoft\Internet Explorer\Settings\Always Use My Colors

Только вот после изменения параметров в реестре, надо как то сделать, чтобы браузер их перечитал и применил к себе. Как это можно сделать ?


 
Rouse_ ©   (2004-07-06 09:55) [1]

uses
 WinInet;

procedure IE_Reread_Registry_Settings;
var
 HInet: HINTERNET;
begin
 hInet := InternetOpen(PChar("YourAppName"), INTERNET_OPEN_TYPE_DIRECT,
   nil, nil, INTERNET_FLAG_OFFLINE);
 try
   if hInet <> nil then
     InternetSetOption(hInet, INTERNET_OPTION_SETTINGS_CHANGED, nil, 0);
 finally
   InternetCloseHandle(hInet);
 end;
end;


 
Алекс А   (2004-07-09 01:48) [2]


> Rouse_ ©   (06.07.04 09:55) [1]


Этот код ничего не даёт.


 
Rouse_ ©   (2004-07-09 09:44) [3]

INTERNET_OPTION_SETTINGS_CHANGED
39
Informs the system that the registry settings have been changed so that it checks the settings on the next call to InternetConnect. This is used by InternetSetOption.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/option_flags.asp


 
Алекс А   (2004-07-10 03:28) [4]


> Rouse_ ©   (09.07.04 09:44) [3]

Ну сам измени с нуля на единицу параметр :
"HKCU\Software\Microsoft\Internet Explorer\Settings\Always Use My Colors", выполни свою процедуру и убедись, что ничего не изменилось.



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.021 c
6-1089213748
BVV
2004-07-07 19:22
2004.09.19
роутинг (route add, route delete)


14-1093695706
DeadMeat
2004-08-28 16:21
2004.09.19
Вот так вот...


1-1093960037
DimonNew
2004-08-31 17:47
2004.09.19
передача массива в процедуру


1-1094201216
P@vel
2004-09-03 12:46
2004.09.19
TmemoryStream


1-1094278842
Соколов
2004-09-04 10:20
2004.09.19
TextFile




   Наверх