Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.09.30;
Скачать: CL | DM;

Вниз

Как изменения в registry вступают в силу?   Найти похожие ветки 

 
Леван   (2002-08-14 11:59) [0]

Привет Мастерам!
Как во время работы программы заменит схему отображения на экране (properties->appearance->desktop scheme)
В registry->Hkey_current_user->Control panel->appearances програмно заменил ключ current на мою схему, но изменения не вступают в силу. Как сделать, чтобы это изменение вступило в силу?
Спасибо


 
Diamond Cat ©   (2002-08-15 00:24) [1]

The system sends the WM_SETTINGCHANGE message to all top-level windows when the SystemParametersInfo function changes a system-wide setting. The system sends this message only if the SystemParametersInfo caller specifies the SPIF_SENDCHANGE flag.

An application can send WM_SETTINGCHANGE to all top-level windows when it makes changes to system parameters. For example, you can send this message after a call to the WriteProfileString, WriteProfileSection, or SetLocaleInfo functions, or after making changes to system parameters in the registry.
The WM_SETTINGCHANGE message is the same as the older WM_WININICHANGE message.

WM_SETTINGCHANGE
wParam = wFlag; // system-wide parameter flag
lParam = (LPARAM) (LPCTSTR) pszSection; // name of changed section or registry

т.е типа
sendmessage(hwnd_broadcast,WM_SETTINGCHANGE,SPIF_SENDCHANGE,integer(pchar(ветка)));



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

Текущий архив: 2002.09.30;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.024 c
1-98054
гончий
2002-09-18 14:23
2002.09.30
Как получить текущую дату в обход стандартных функций Date & Now


14-98265
Malder
2002-08-29 17:53
2002.09.30
Какой компьютер быстрее работает


1-98139
AlexT1000
2002-09-17 13:23
2002.09.30
Можно ли данный код считать универсальным деструктором


1-98184
Max_1
2002-09-18 10:14
2002.09.30
Как динамически создать процедуру


1-98070
velk
2002-09-19 12:47
2002.09.30
Подскажите как вызвать стандартное окно Dial-Up?