Jump to content

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

[Edit]

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")
    Next
    GUICtrlSetData($edit, $string)
EndFunc

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

Does anyone know how to do that?

[Edit]

Pssh, that was in LazyCat's script too.

Thanks for you help LazyCat!

Edited by magician13134
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...