?
Solved

Detecting when new item is selected in list box.

Posted on 1998-09-07
2
Medium Priority
?
165 Views
Last Modified: 2013-11-20
Hi eevryone,

How do you detect when a new item within a list box is selected (with the left-mouse-button)?  I know about LBN_SELCHANGE, but that is called before the new selection takes effect.  I want to know what the NEW selection is.

Example:
I select list item B in a list box.  I want to know what message (if any) is sent to tell me that list item B has been selected.  If no messages are sent that tell me this, then how do I accomplish this basic task?

Thanks.
0
Comment
Question by:ameteur
2 Comments
 
LVL 2

Accepted Solution

by:
prasanth earned 200 total points
ID: 1321810
LBN_SELCHANGE is the currect message to be processing. When you process it, Use CListBox::GetCurSel or send LB_GETCURSEL to get the current selection.
0
 

Author Comment

by:ameteur
ID: 1321811
Thanks, it turned out I was doing something else wrong.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

864 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