Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Append to a list in a dialog at real-time
#2
Function LB_Add
Code:
Copy      Help
;/
function# hlb $text [itemdata]

;Adds an item to a list box control.
;Returns new item index. On error, returns a negative value.


int ni=SendMessageW(hlb LB_ADDSTRING 0 @text)
if(itemdata) SendMessage(hlb LB_SETITEMDATA ni itemdata)
ret ni

To remove all
Macro
Code:
Copy      Help
SendMessage hlb LB_RESETCONTENT 0 0


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)