@TheComet
Remember how we used the Windows style to disable the Maximize button? Well it's the same principal here. Just include the constant for border resizing. Here is the altered disable maximize button code including disabling resizing:
set window on
set window title "Deactivate Maximize Button and Resizing"
rem variables and constants
user32=1
GWL_STYLE = (-16)
WS_MAXIMIZEBOX = 65536
WS_MINIMIZEBOX = 131072
WS_THICKFRAME = 262144
load dll "user32.dll",user32
rem query window handle
hwnd=call dll(user32,"GetActiveWindow")
rem get the current window style - this has min max info
curstyle=call dll(user32,"GetWindowLongA",hwnd,GWL_STYLE)
rem this is just a test to see if MAXIMIZEBOX is included in the current style
print "Old Style value : ";curstyle
print "if 65536 then the style HAS a max button :";curstyle & WS_MAXIMIZEBOX
print "if 262144 then the style HAS resizing ability :";curstyle & WS_THICKFRAME
rem should be able to adjust the style by subtracting the max button from the
rem current style
newstyle=curstyle-(WS_MAXIMIZEBOX | WS_THICKFRAME)
print
print "Turn them off"
rem write the new style to the window
result=call dll(user32,"SetWindowLongA",hwnd,GWL_STYLE,newstyle)
print "The oldstyle is returned as the style is changed :"; result
rem get the current window style - this has min max info
curstyle=call dll(user32,"GetWindowLongA",hwnd,GWL_STYLE)
rem this is just a test to see if MAXIMIZEBOX is included in the current style
print "New style value :";curstyle
print "Max ? : ";curstyle & WS_MAXIMIZEBOX
print "Resizing? :";curstyle & WS_THICKFRAME
Enjoy your day.