Solved

Popping up a listbox from a listbox item?

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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Catchy phrases for IT Services 3 89
Prevent this page from creating additional dialogs. 3 529
zeroFront challenge 7 98
Download every frame from a Youtube video as .jpg 3 56
Read about why website design really matters in today's demanding market.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
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.
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.

770 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