Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Weird CComboBox OnDropDown problem

Posted on 1997-07-24
4
Medium Priority
?
326 Views
Last Modified: 2013-11-20
null
0
Comment
Question by:roelf
[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
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
gelbert earned 200 total points
ID: 1302785
I think your problem is that you tring to bring up MessageBox in CBN_DROPDOWN message handler when MFC is trying to do some painting to fill in listbox of combobox and message box  also trying to do some painting. Possible solution is to use PostMessage to call another function to bring up message box.
0
 

Author Comment

by:roelf
ID: 1302786
I have tried using PostMessage() in the OnDropdownCombo1() function
to call another function to display the messagebox.  The messagebox
comes up allright, but then the list part of the combobox closes,
so no item can be selected.
0
 
LVL 8

Expert Comment

by:gelbert
ID: 1302787
IF you want to have open listbox part ob combobox after message box is closed then as soon as user press "OK" on your message box, send CBN_DROPDOWN message to combobox class to reopen list box and not to display message box this time.
0
 

Author Comment

by:roelf
ID: 1302788
I can do that, but it seems to be such a schlep to keep track of
is this the first ONDROPDOWN or the second one, etc...

Thanks anyway - at least I can get it working now.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

610 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