A parent window knows if it has children. And it can get to those children. Those DlgItem functions taket he parent window and an index to the child. But it's just another way of referencing the child window handle.
If you're indexing to the wrong child, make sure you are passing in the correct index where you're currently passing zero.