Topmost window

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

  • Hello Thomas,

    for getting the handle of the topmost child window you can try the following:

    static WM_HWIN GetTopMostWindow(WM_HWIN hParent) {
    WM_HWIN hOld = 0;
    WM_HWIN hWin;

    hWin = WM_GetFirstChild(hParent);
    while (hWin) {
    hOld = hWin;
    hWin = WM_GetNextSibling(hWin);
    }
    return hOld;
    }

    As paramter pass the handle of the parent window e.g. WM_HBKWIN.

    Regards,
    Sven
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.