Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

User Image
enteleform
2 discussion posts
Ran into a few issues with this scripted function:
Toggle Borders and Caption From Window.

Issue 1: Inaccurate Window Sizing

http://i.imgur.com/ZgK0bkY.gif


This issue seems to be caused by calling
SetSize/SetSizeAndLocation
before
SetWindowStyle
, instead of after it. However, it seems that a borderless window cannot be resized by
SetSize/SetSizeAndLocation
. I managed to circumvent this by calling
user32.dll/SetWindowPos
. Perhaps
SetSize/SetSizeAndLocation
can be updated so that this workaround becomes unnecessary?

Issue 2: System Window Side Effects

http://i.imgur.com/fjzle7x.gif


This issue can mangle the Windows Shell & render it unusable. It is easily fixed by implementing a list of window classes that should always be ignored, as well as a list of window classes that should not have alternate styles applied. IMO these would be better situated as global settings, so that users can define said window class exclusions once & reuse them throughout their scripts.

Here is a Gist that contains
ToggleBorder
&
Maximize_RemoveBorder
functions with the above fixes implemented.
Nov 30, 2017 (modified Nov 30, 2017)  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Thanks for the feedback! We'll look into fixing those issues up. In the meantime, I've updated the existing script in the repository with your new code :)
Dec 4, 2017  • #2
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)