Code:
LISTBOX GET COUNT hDlg???, %LISTBOX TO ListboxCount& LISTBOX SELECT hDlg???, %LISTBOX, ListboxCount& LISTBOX UNSELECT hDlg???, %LISTBOX, ListboxCount&
LISTBOX GET COUNT hDlg???, %LISTBOX TO ListboxCount& LISTBOX SELECT hDlg???, %LISTBOX, ListboxCount& LISTBOX UNSELECT hDlg???, %LISTBOX, ListboxCount&
ListboxCount = SendMessage(hList, %LB_GETCOUNT, 0, 0) 'Ask listbox for items count SendMessage(hList, %LB_ADDSTRING, ListboxCount, StrPtr(sBuffer)) 'Add message to listbox ' SendMessage hList, %LB_SETCURSEL, ListboxCount, 0 'Go to last listbox position SendMessage hList, %lb_setcaretindex, ListboxCount+1, 0 'yay!!
ListboxFlags = %ws_child Or %ws_visible Or %ws_tabstop Or %ws_vscroll Or %lbs_multiplesel Or %lbs_extendedsel 'ListboxFlags = ListboxFlags Or %es_autovscroll ' Or %lbs_disablenoscroll Control Add ListBox, hDlg, %LISTBOX, , 5, 5, 490, 50, ListboxFlags, %ws_ex_clientedge
ListboxCount = SendMessage(hList, %LB_GETCOUNT, 0, 0) 'Ask listbox for items count SendMessage(hList, %LB_ADDSTRING, ListboxCount, StrPtr(sBuffer)) 'Add message to listbox SendMessage hList, %LB_SETCURSEL, ListboxCount, 0 'Go to last listbox position
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: