acantor Posted September 13, 2015 Report Share Posted September 13, 2015 I know how to set the width of window border... Windows Sizing Border: 3 pixels ... But I cannot find a way to assign the value to an integer variable. Any ideas? Quote Link to comment Share on other sites More sharing options...
Cory Posted September 14, 2015 Report Share Posted September 14, 2015 HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics\BorderWidth HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics\PaddedBorderWidth Use the registry? Quote Link to comment Share on other sites More sharing options...
acantor Posted September 14, 2015 Author Report Share Posted September 14, 2015 I'll try and report back! Quote Link to comment Share on other sites More sharing options...
terrypin Posted September 17, 2015 Report Share Posted September 17, 2015 Hi Alan, Did you have any success? Here, on my XP Pro PC, the BorderWidth key reports a value of -15 which is puzzling. (I don't have a PaddedBorderWidth key.) Try exploring this alternative approach (with appropriate changes for Vista/Win 7/8/10). Control Panel > Display > Appearance > Advanced > Item > Active Window Border > Size and capture from that box into your variable. Yet another quite different idea (not tried) would be to actually measure it, counting pixels from just outside the border in a known environment. --Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.