akorx Posted May 18, 2017 Share Posted May 18, 2017 Hi my friends, First, sorry for my bad english... I use winmove() to move and resize the active windows that I have my screen, but some of them are not resizable (it could be for example the windows menu when you press the window key (with the flag), a simple windows message/alert with only a button, etc). Is there a way to know if a windows is resizable or not before to do it ? AkorxMail akorx@yahoo.fr Link to comment Share on other sites More sharing options...
Deye Posted May 19, 2017 Share Posted May 19, 2017 Try this: not tested #include <WinAPI.au3> If _isResizable($handle) Then EndIf Func _isResizable($hwnd) If BitAND(_WinAPI_GetWindowLong($hwnd, $GWL_EXSTYLE), $WS_SIZEBOX) Then Return 1 If BitAND(_WinAPI_GetWindowLong($hwnd, $GWL_EXSTYLE), $WS_THICKFRAME) Then Return 1 Return 0 EndFunc Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now