Sign in to follow this  
Followers 0
musicstashall

Border Width and Padded Border Width

6 posts in this topic

#1 ·  Posted

Who is familiar with the procedure? How to set and display the thickness of the border of the window?

0ae55b5498ee6d3492f648370b170326.pnga04664fd6b99a3e0fc926f1c8e1d1322.png

It is only known that the values are set in the registry: 'HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics'
Keys: 'BorderWidth' and 'PaddedBorderWidth'

Values: - (0 ...  10) × 15
Can I somehow use the function in real time to get the result ??

 

Share this post


Link to post
Share on other sites



#2 ·  Posted

;)

Local $BorderWidth = RegRead('HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics', 'BorderWidth')
Local $PaddedBorderWidth = RegRead('HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics', 'PaddedBorderWidth')

ConsoleWrite($BorderWidth & @CRLF)
ConsoleWrite($PaddedBorderWidth & @CRLF)

 


Regards,
 

Share this post


Link to post
Share on other sites

#3 ·  Posted

I meant something like

_WinAPI_DwmSetWindowAttribute

You need a real-time result. Not for a specific window, but globally for all windows .

Share this post


Link to post
Share on other sites

#4 ·  Posted

To take effect immediately after set value in registry. You may need to kill explorer or log out and log back in!
I do not know how to make real-time result!


Regards,
 

Share this post


Link to post
Share on other sites

#5 ·  Posted

Might have to kill dmw.exe or kill dwm.exe and explorer

Share this post


Link to post
Share on other sites

#6 ·  Posted

Kill the Explorer or DWM - does not work, only the log out and log back in. Winaero Tweaker somehow does this..

Winaero Tweaker

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0