BS_AUTORADIOBUTTON - how to iterate thru a set of them ?

Giganews Newsgroups
Subject: BS_AUTORADIOBUTTON - how to iterate thru a set of them ?
Posted by:  R.Wieser (addre…@not.available)
Date: Sun, 10 Feb 2019

Hello all,

Does anyone know how to *iterate* thru a group of auto radio buttons, to see
which one is selected / change their selected status ?

Currently I'm using GetWindow with the GW_HWNDNEXT argument, but need to do
some hacky and rather non-perfect checks (using the class atom as well as
the button type bits (lower 4) ) to stay within the group - in effect trying
to emulate the group behaviour the auto radio buttons already have.

But I would not be amazed if this has already been solved before in a much
more elegant way. :-)

Regards,
Rudy Wieser

Replies