I am try to detect how many check boxes exist in a dialog, and then
check and uncheck them all.
My problem is that if I iterate through every ordinal, WCheckExists
returns true when the ordinal is a checkbox, and when it is a standard
button, or a button-like custom control.
does not exist.' (the seven is arbitrary)
It just so happens that this coincides with the WCheckUnCheck
statement, and the control is a custom button-like control that we use
as a color picker.
Dim i as long
i = 1
' Needs expansion
do while WCheckExists(_ord(i))
i = i + 1
I realize that there may be other approaches, but I really need one
that lets me iterate all the checkboxes in a dialog, without knowing
their names, or how many there are.
Sent via Deja.com http://www.deja.com/
Before you buy.