Jump to content

Recommended Posts

Posted (edited)
Func GUICtrlGetSize($iControlID)
    Local $hControlID = GUICtrlGetHandle($iControlID)
    Local $aControlPos[2]
    $aControlPos[0] = ControlGetPos($hControlID, "", 0)[2] ;width
    $aControlPos[1] = ControlGetPos($hControlID, "", 0)[3] ;height
    Return $aControlPos
EndFunc ;==>GUICtrlGetSize

Purpose: Get the width and height of control.

My Purpose: Get the width and height of images(controls).

Edited by rizaado

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
×
×
  • Create New...