Solved

Popping up a listbox from a listbox item?

Posted on 1998-10-23
2
234 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Window placement 17 75
Detect file exist or not 3 132
Change to event 1 101
What display techniques for text on a video? 3 22
Read about how to choose the best possible content marketing agency to suit your needs. Content marketing has become an integral part of running a successful tech business, so it is wise to be informed.
A great marketing strategy is diverse.  Read about the not so popular, yet effective, marketing tactics you can start using today!
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…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

910 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

24 Experts available now in Live!

Get 1:1 Help Now