?
Solved

Popping up a listbox from a listbox item?

Posted on 1998-10-23
2
Medium Priority
?
278 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are many other benefits to creating an inbound marketing strategy. Let’s take a look at five of the biggest and how they'll affect your business.
There is a massive demand for content on the web right now, and it doesn't look like it's going to stop any time soon. But, if you are running a business blog, it's not just enough to offer your audience lots of content. It needs to be high-quality…
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.
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…
Suggested Courses
Course of the Month11 days, 20 hours left to enroll

752 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