STM32F746G Discovery

  • I want to read the number set in SPINBOX, can it be that way?

    case ID_SPINBOX_1:
    switch (NCode) {
    case WM_NOTIFICATION_VALUE_CHANGED:
    hItem = WM_GetDialogItem(pMsg->hWin, ID_SPINBOX_1);
    showing = SPINBOX_GetValue(pMsg->hWinSrc);
    break;
    }
    break;

  • Hi,

    yes, but you can leave out the call of WM_GetDialogItem(). Its return value should be the same as pMsg->hWinSrc.

    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: https://www.segger.com/ticket/

    Or you can contact us via e-mail.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!