WM2003SE

I create programm - for hardware button. Press - ClearType on or off realtime.

But GUI it is not updated. When I use Setting-Control Panel - Screen, GUI is
updated real. How to me to make, that the interface was updated?



HKEY hKeyN2;
int rc;
DWORD dwDisp;

rc = RegOpenKeyEx (HKEY_LOCAL_MACHINE, TEXT ("System\\GDI\\CLEARTYPE"), 0,
KEY_QUERY_VALUE, &hKeyN2);
RegCloseKey( hKeyN2 );

if (rc == 0)
{

RegDeleteKey(HKEY_LOCAL_MACHINE, TEXT ("System\\GDI\\CLEARTYPE"));
}
else
{
RegCreateKeyEx (HKEY_LOCAL_MACHINE, TEXT("System\\GDI\\CLEARTYPE"), 0,TEXT
(""), 0, 0, NULL, &hKeyN2, &dwDisp);
}

Re: ClearType on\off by ctacke/>

ctacke/>
Wed Nov 02 05:41:56 CST 2005

Have you tried broadcasting a WM_SETTINGCHANGE message after the change?

-Chris


"Antoni" <Antoni@discussions.microsoft.com> wrote in message
news:263D79A0-6AED-4F9D-8FB1-75E99BFA261D@microsoft.com...
> WM2003SE
>
> I create programm - for hardware button. Press - ClearType on or off
> realtime.
>
> But GUI it is not updated. When I use Setting-Control Panel - Screen, GUI
> is
> updated real. How to me to make, that the interface was updated?
>
>
>
> HKEY hKeyN2;
> int rc;
> DWORD dwDisp;
>
> rc = RegOpenKeyEx (HKEY_LOCAL_MACHINE, TEXT ("System\\GDI\\CLEARTYPE"), 0,
> KEY_QUERY_VALUE, &hKeyN2);
> RegCloseKey( hKeyN2 );
>
> if (rc == 0)
> {
>
> RegDeleteKey(HKEY_LOCAL_MACHINE, TEXT ("System\\GDI\\CLEARTYPE"));
> }
> else
> {
> RegCreateKeyEx (HKEY_LOCAL_MACHINE, TEXT("System\\GDI\\CLEARTYPE"), 0,TEXT
> (""), 0, 0, NULL, &hKeyN2, &dwDisp);
> }



Re: ClearType on\off by Antoni

Antoni
Wed Nov 02 05:53:04 CST 2005

I have SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0xF2, 0);
. Does not work. Which message and how to send?

"<ctacke/>" wrote:

> Have you tried broadcasting a WM_SETTINGCHANGE message after the change?
>
> -Chris
>