Found the handle of a child widget from its ID

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Found the handle of a child widget from its ID

    I have a window and some widgets created as childs. During creation, I set a different ID for each widget.

    At a later time, I need to retrieve the handle of a child widget starting from its ID and parent window handle. Is there a similar function?

    I read about WM_GetDialogItem(), but it doesn't work in my situation.