Jump to content
Sign in to follow this  

How to get a window size during WM_SIZING

Recommended Posts


Once that happens, it's too late for what I'm trying to do. I need to get the size of the grey border BEFORE you let go of the mouse


Ah, I found a LazyCat script that I was able to modify to do it. Here's what I did:

GUIRegisterMsg(0x0214, "moving")
Func moving($hWnd, $Msg, $wParam, $lParam)
    Local $pos = DllStructCreate("uint;uint;int;int;int;int;uint", $lParam)
    $string = ""
    For $i = 0 to 6
        $string&=$i & ": " & DllStructGetData($pos, $i) & @CRLF
        GUICtrlSetData($edit, $i, "append")
    GUICtrlSetData($edit, $string)

Now I just need to find out how to manipulate that size...

Does anyone know how to do that?


Pssh, that was in LazyCat's script too.

Thanks for you help LazyCat!

Edited by magician13134

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.