comparison os2/dw.c @ 571:828e6a66c5c5

Add dw_listbox_list_append()
author mhessling@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 20 Jul 2004 07:36:11 +0000
parents 07c100ee783d
children 70c8a30c254f
comparison
equal deleted inserted replaced
570:052e9e4a59bd 571:828e6a66c5c5
5675 MPFROMSHORT(LIT_END), 5675 MPFROMSHORT(LIT_END),
5676 MPFROMP(text)); 5676 MPFROMP(text));
5677 } 5677 }
5678 5678
5679 /* 5679 /*
5680 * Appends the specified text items to the listbox's (or combobox) entry list.
5681 * Parameters:
5682 * handle: Handle to the listbox to be appended to.
5683 * text: Text strings to append into listbox.
5684 * count: Number of text strings to append
5685 */
5686 void API dw_listbox_list_append(HWND handle, char **text, int count)
5687 {
5688 int i;
5689 for(i=0;i<count;i++)
5690 WinSendMsg(handle,
5691 LM_INSERTITEM,
5692 MPFROMSHORT(LIT_END),
5693 MPFROMP(text[i]));
5694 }
5695
5696 /*
5680 * Clears the listbox's (or combobox) list of all entries. 5697 * Clears the listbox's (or combobox) list of all entries.
5681 * Parameters: 5698 * Parameters:
5682 * handle: Handle to the listbox to be cleared. 5699 * handle: Handle to the listbox to be cleared.
5683 */ 5700 */
5684 void API dw_listbox_clear(HWND handle) 5701 void API dw_listbox_clear(HWND handle)