Apr 26, 2001 #1 SteveCRM Programmer Joined Oct 30, 2000 Messages 8 Location 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 Joined Mar 30, 2001 Messages 1,440 Location 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 Joined Oct 30, 2000 Messages 8 Location US It gives me an error that its not a class. Upvote 0 Downvote
Apr 28, 2001 #4 Cagliostro Programmer Joined Sep 13, 2000 Messages 4,226 Location GB Are you using WinAPI or MFC? John Fill ivfmd@mail.md Upvote 0 Downvote
Apr 29, 2001 Thread starter #5 SteveCRM Programmer Joined Oct 30, 2000 Messages 8 Location US Win API Upvote 0 Downvote
Apr 29, 2001 #6 wduty Programmer Joined Jun 24, 2000 Messages 271 Location 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 Thread starter #7 SteveCRM Programmer Joined Oct 30, 2000 Messages 8 Location US THANKS!!!!!! Upvote 0 Downvote
Apr 29, 2001 #8 wduty Programmer Joined Jun 24, 2000 Messages 271 Location 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