Sign in to follow this  
Followers 0
jennico

control number > 4096

1 post in this topic

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
    Next
    Return SetError(1,0,'')
EndFunc

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

j.


Spoiler

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

 

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  
Followers 0