Maybe the first one; that is, the control which comes first in the tab
order.

You don't know the lookup algorithm that GetDlgItem uses, and there's no
mention in the documentation as to what happens with duplicated IDs, so you
can't rely on what it will do in this case.

--
Tim Robinson (MVP, Windows SDK)
http://www.themobius.co.uk/

"brigham white" wrote in message
news:vfsta3jncuvvcf@corp.supernews.com...
> Hypothetical, if I had two child controls in a dialog box with the same

ID,
> and I called GetDlgItem() with the ID, which handle would be returned?
>
>