FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Changing a Windows setting in a FWH-application
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM

Changing a Windows setting in a FWH-application

Posted: Wed Sep 02, 2015 06:02 PM
Hello,

I want to change a Windows setting in my application.

It concerns this setting :


I know that I have to logoff. That is no problem. I know how to do that.

Does anyone know how to establish this change?

Thanks a lot in advance for any help.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM

Re: Changing a Windows setting in a FWH-application

Posted: Wed Sep 02, 2015 07:12 PM

Michel
Try changing the key
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Assistance\Client\1.0\Settings\ZoomPercent
And logoff

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM

Re: Changing a Windows setting in a FWH-application

Posted: Wed Sep 02, 2015 07:36 PM

Christobal,

Unfortunately, this doesn't work. I even don't have this item in the register. Not with 100 % and not with 125 %.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM

Re: Changing a Windows setting in a FWH-application

Posted: Wed Sep 02, 2015 07:43 PM
driessen wrote:Christobal,

Unfortunately, this doesn't work. I even don't have this item in the register. Not with 100 % and not with 125 %.


Which version of Windows you use?
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM

Re: Changing a Windows setting in a FWH-application

Posted: Wed Sep 02, 2015 10:28 PM

I need it for Windows XP, Vista, 7 and 8(.1)

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM

Re: Changing a Windows setting in a FWH-application

Posted: Thu Sep 03, 2015 10:47 AM

Christobal,

I noticed that this key is the one containing the dpi.

HKEY_CURRENT_USER\Control Panel\Desktop\Windowmetrics\AppliedDPI

It is a REG_DWORD key, containing the DPI hexadecimal.

But how can I read this value in a FWH-application?

I don't have that much experience with the register.

Thank you.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: Changing a Windows setting in a FWH-application

Posted: Thu Sep 03, 2015 01:04 PM
Code (fw): Select all Collapse
#ifndef HKEY_CURRENT_USER
   #define  HKEY_CURRENT_USER       2147483649        // 0x80000001
#endif


   local oReg

   oReg:= TReg32():New( HKEY_CURRENT_USER, "Control Panel\Desktop\Windowmetrics" )
   ? oReg:Get( "AppliedDPI", 0 )
   oReg:Set( "AppliedDPI", nNewValue )
Regards



G. N. Rao.

Hyderabad, India
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM

Re: Changing a Windows setting in a FWH-application

Posted: Thu Sep 03, 2015 01:10 PM

Thanks a lot, Mr. Rao.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Continue the discussion