Solved

Popping up a listbox from a listbox item?

Posted on 1998-10-23
2
222 Views
Last Modified: 2013-11-28
Hi,

I want to create a CListBox-derived class, called CPoppableListBox.

When the user selects an item, a new listbox would pop up offering him a choice of strings.

When he selects one, it would replace the original item, and the popped-up choices listbox would be destroyed. Or he could cancel the operation by clicking a second time on the underlying item.

The pop up listbox can be any size, so shouldn't be clipped to anything smaller than the desktop.

Are there any such classes in existence, and if not how do I create one?
0
Comment
Question by:wagtail
2 Comments
 
LVL 2

Accepted Solution

by:
cyrilbdt earned 200 total points
ID: 1323748
You should probably create CWnd derived class wich will be popup and contain CListBox in it
0
 

Author Comment

by:wagtail
ID: 1323749
Thanks cyrilbdt, but how do I handle the selection messages properly?

With a CListBox within my pop up window as you suggest, the pop up window is the parent and therefore handles LBN_SELCHANGE messages sent from its listbox.

I need to respond to LBN_SELCHANGE by changing the *underlying* listbox item (the one that was originally clicked). Is there some way I can route the message so that it bypasses the pop up window and gets handled by the "grandparent" listbox?


0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

The next wave of Panda releases starts with Panda2.1 After the game-changing Panda2.0 update that caused a reduction in Google search engine referral traffic to a newly affected and larger set of websites, more Panda updates were already in the pip…
Why do people keep talking about the Panda Update? Google’s Panda updates continue to be a hot topic of discussion because they were game-changers.  Rand Fishkin at SEOMoz hosted an excellent video Whiteboard Friday (http://www.seomoz.org/blog/how-…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
An overview of how to create reports in Adobe Analytics (formerly Omniture Site Catalyst) using pageNames, events, eVars and props. This video will show you how to install the Omniture Debugger tool so can see (and test) what is being passed int…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now