Solved

How to get the selected items..???

Posted on 1998-03-16
3
195 Views
Last Modified: 2010-04-10
Does anyone know how to get the selected items inside a Multi-Selection CListBox???
0
Comment
Question by:softyan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
faster earned 50 total points
ID: 1183539
send a LB_GETSELCOUNT message to the listbox first, then allocate a memory according to the size returned and send message LB_GETSELITEMS, using the memory allocated as the lparam.  Check document for these two messages for detail.
0
 
LVL 2

Expert Comment

by:shogi
ID: 1183540
Yes, Shogi's answer is the MFC version, the MFC function then send the messages I mentioned.  I don't like MFC, but probably you do.
0
 
LVL 7

Expert Comment

by:faster
ID: 1183541
I prefer Shogi's answer! Thanks faster and Shogi.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question