Jump to content
Sign in to follow this  

control number > 4096

Recommended Posts


hi there,

i tested the limits of the control max and managed to declare 4103 static controls.

for counting i used the function i found here in the forum:

Func _ControlGetCount($hWndGUI,$sType='')
    If $sType='' Then _
        Return UBound(StringSplit(StringTrimRight(WinGetClassList($hWndGUI),1),@LF))-1
    For $iCC=1 To 4095
        If ControlGetHandle($hWndGUI,'',$sType&$iCC)=0 Then Return $iCC-1
    Return SetError(1,0,'')

is this result just weird or is there a reason for exeeding the limit ?



I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.OixB7.jpgDon't forget this IP:


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.