?
Solved

Popping up a listbox from a listbox item?

Posted on 1998-10-23
2
Medium Priority
?
285 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 400 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
Ranking ecommerce websites is a vital process. You need to have a strong SEO (Search Engine Optimization) strategy. If you don’t have one, you are losing out on brand impressions, clicks and sales. Check this guide on how to improve website traffic …
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

862 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