How to check if DROPDOWN expanded?

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

    • How to check if DROPDOWN expanded?

      Hi,

      I would like to detect if a DROPDOWN is in expanded state to prevent other menus from being opened.
      The manual says that DROPDOWN_GetListbox() returns the handle of the attached LISTBOX widget in expanded state and 0 if DROPDOWN is in collapsed
      state.
      If I use it as in below example it always returns zero, also in expanded state.

      Source Code

      1. hItem = WM_GetDialogItem(pMsg->hWin, (ID_DROPDOWN_MODX)); /*mode menu*/
      2. Open = DROPDOWN_GetListbox(hItem); /*returns listbox handle if expanded, else zero*/
      What could be wrong?

      Regards
      Jan