Announcement

Collapse
No announcement yet.

Problem with Listbox-Item and pbdll

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with Listbox-Item and pbdll

    Hello,
    I've got a problem with adding items to a combobox (dropdown listbox).
    I'm trying to add the items with this code:

    Code:
    wert$="Test"
    retval = SendDlgItemMessage(hDlg, 106, %LB_ADDSTRING, 0, strptr(wert$))
    MSGBOX "Returnvalue:"+str$(retval), %MB_OK, "Ooops..."
    The return value is 0, which is LB_OK. But unfortunately
    the listbox in the dialog remains empty. No items are added.
    I'm using pb/dll 5.0.

    Hope someone can help me...
    thanks in advance
    cu

    ------------------

  • #2
    LB means "ListBox" You need CB_...

    ------------------
    E-MAIL: [email protected]

    Comment


    • #3
      Thanks! Now it's working :-)

      ------------------

      Comment

      Working...
      X