Solved

Weird CComboBox OnDropDown problem

Posted on 1997-07-24
4
270 Views
Last Modified: 2013-11-20
null
0
Comment
Question by:roelf
  • 2
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
gelbert earned 100 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

746 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

13 Experts available now in Live!

Get 1:1 Help Now