Apr 26, 2001 #1 SteveCRM Programmer Oct 30, 2000 8 US all I really need to know is how to add items, remove items, and clear the listbox. Also, how would I get text from a certain index?
all I really need to know is how to add items, remove items, and clear the listbox. Also, how would I get text from a certain index?
Apr 27, 2001 #2 Zyrenthian Programmer Mar 30, 2001 1,440 US Look in the help file and see CListBox::FindString CListBox::AddString CListBox::InsertString CListBox:eleteString CListBox::GetText There are others but the help file should be the best help to you. Matt Upvote 0 Downvote
Look in the help file and see CListBox::FindString CListBox::AddString CListBox::InsertString CListBox:eleteString CListBox::GetText There are others but the help file should be the best help to you. Matt
Apr 27, 2001 Thread starter #3 SteveCRM Programmer Oct 30, 2000 8 US It gives me an error that its not a class. Upvote 0 Downvote
Apr 28, 2001 #4 Cagliostro Programmer Sep 13, 2000 4,226 GB Are you using WinAPI or MFC? John Fill ivfmd@mail.md Upvote 0 Downvote
Apr 29, 2001 #6 wduty Programmer Jun 24, 2000 271 US Add an item: SendMessage(ListBoxHandle, LB_ADDSTRING, 0, (LPARAM)pStr); Remove item: SendMessage(ghList, LB_DELETESTRING, (WPARAM)index, 0); Clear all: SendMessage(hList, LB_RESETCONTENT, 0, 0); --Will Duty wduty@radicalfringe.com Upvote 0 Downvote
Add an item: SendMessage(ListBoxHandle, LB_ADDSTRING, 0, (LPARAM)pStr); Remove item: SendMessage(ghList, LB_DELETESTRING, (WPARAM)index, 0); Clear all: SendMessage(hList, LB_RESETCONTENT, 0, 0); --Will Duty wduty@radicalfringe.com
Apr 29, 2001 #8 wduty Programmer Jun 24, 2000 271 US Glad to help. There's a bunch of other stuff you can do with listboxes like linking data to the items in the list, etc. Look at http://msdn.microsoft.com/library/psdk/winui/listbox_6z6t.htm--Will Duty wduty@radicalfringe.com Upvote 0 Downvote
Glad to help. There's a bunch of other stuff you can do with listboxes like linking data to the items in the list, etc. Look at http://msdn.microsoft.com/library/psdk/winui/listbox_6z6t.htm--Will Duty wduty@radicalfringe.com