multiple selection in a list box
-
Hello, I have a list box using CListBox class in which I want to select multiple choices in the list box. But how do I get all the strings selected in an array. The documentation of CListBox tehre is no function to get multiple strings. The GetSelItems() function gives multiple ints then What should I do. Thanks Prithaa
-
Hello, I have a list box using CListBox class in which I want to select multiple choices in the list box. But how do I get all the strings selected in an array. The documentation of CListBox tehre is no function to get multiple strings. The GetSelItems() function gives multiple ints then What should I do. Thanks Prithaa
prithaa wrote:
The GetSelItems() function gives multiple ints then What should I do.
Those are the indexes of the selected items.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Hello, I have a list box using CListBox class in which I want to select multiple choices in the list box. But how do I get all the strings selected in an array. The documentation of CListBox tehre is no function to get multiple strings. The GetSelItems() function gives multiple ints then What should I do. Thanks Prithaa
Hi you youselve have to do it in a for loop GetSelItems() GetText()
tanvon malik http://www.tanvon.com http://tanvon.wordpress.com http://groups.yahoo.com/group/tanvon http://www.codeproject.com/script/articles/list_articles.asp?userid=1638055
-
prithaa wrote:
The GetSelItems() function gives multiple ints then What should I do.
Those are the indexes of the selected items.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
prithaa wrote:
Thanks,I overlooked the docs.
Now
THAT
is something that is just begging to be in a signature...! Peace!-=- James
Please rate this message - let me know if I helped or not! * * *
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles -
prithaa wrote:
Thanks,I overlooked the docs.
Now
THAT
is something that is just begging to be in a signature...! Peace!-=- James
Please rate this message - let me know if I helped or not! * * *
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFilesMornin' James :)
Mark Salsbery Microsoft MVP - Visual C++ "Thanks,I overlooked the docs."
-
Mornin' James :)
Mark Salsbery Microsoft MVP - Visual C++ "Thanks,I overlooked the docs."
:laugh: :laugh: :laugh: Peace!
-=- James
Please rate this message - let me know if I helped or not! * * *
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles -
Mornin' James :)
Mark Salsbery Microsoft MVP - Visual C++ "Thanks,I overlooked the docs."
-
I haven't heard from his attorneys yet :)
Mark Salsbery Microsoft MVP - Visual C++ "Thanks,I overlooked the docs."
-
I haven't heard from his attorneys yet :)
Mark Salsbery Microsoft MVP - Visual C++ "Thanks,I overlooked the docs."
-
Fixed.
Mark Salsbery Microsoft MVP - Visual C++ "You just stole a document from James!"
-
Fixed.
Mark Salsbery Microsoft MVP - Visual C++ "You just stole a document from James!"
Even funnier! :laugh: Peace!
-=- James
Please rate this message - let me know if I helped or not! * * *
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles -
Even funnier! :laugh: Peace!
-=- James
Please rate this message - let me know if I helped or not! * * *
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFilesHey what are you looking at? I just tricked him with my doc. He's just taken his hands up from your doc! Just grab it back James, fast fast.:laugh: btw, Marc is this we call a "sig-Virus",that gets itself attached to the sigs automatically?. :-D (Very funny indeed!)