WM_SendMessageNoPara(): hWinSrc member of received message is zero

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

  • WM_SendMessageNoPara(): hWinSrc member of received message is zero

    I'm using WM_SendMessageNoPara() function to send a message from window A to window B, when the user press a button on window A. The member hWinSrc of the received message by window B is zero. Is it normal?
  • Hi,

    Yes, that is normal. The prototype of the function is as follows:

    void WM_SendMessageNoPara(WM_HWIN hWin, int MsgId);

    It does not consider the sender. But you can use WM_SendMessage() and fill the message structure with the required information.

    Regards, Jörg
    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.