?
Solved

How to get the selected items..???

Posted on 1998-03-16
3
Medium Priority
?
196 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

765 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