Get coordinates of dialog item

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

  • Get coordinates of dialog item

    Hello Adrian,
    how do I get the x/y coordinates of a dialog item?
    (Values set in IMAGE_CreateIndirect...)
    I get the handle by WM_GetDialogItem.

    Must be simple but I do not find it...

    Best regards,
    HaJo

    The post was edited 1 time, last by HaJoCC ().

  • Hello Adrian,

    yes, of course. The windows manager...
    It is easy. I did not try WM_GetWindowOrgX and Y with the dialog item handle. That´s it.

    hItem = WM_GetDialogItem(pMsg->hWin, ID_IMAGE_0);
    xpos = WM_GetWindowOrgX (hItem);

    Best regards,
    HaJo

    The post was edited 1 time, last by HaJoCC ().