Solved

How to get CB_SHOWDROPDOWN message?

Posted on 1998-10-16
1
784 Views
Last Modified: 2013-11-20
Hi,

I wrote a activex control that use "COMBOBOX" as classname, that is , I want
it to behave like a combobox. I want to show my own window when the user click
the button of it, but I can not get the CB_SHOWDROPDOWN message, who can help
me?

Thanks in advance.
0
Comment
Question by:wuxz
[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
1 Comment
 
LVL 8

Accepted Solution

by:
Answers2000 earned 50 total points
ID: 1323386
CB_SHOWDROPDOWN message is not sent to you: you send it to the control to tell it to drop down.

Look for CBN_DROPDOWN message if you want to know when the combo is about to be dropped by the user.

It is sent to the parent of the control by Windows as a WM_COMMAND message with CBN_DROPDOWN message.

MFC reflects it to the control.  Look for "=CBN_DROPDOWN" in the messages part of the class wizard
0

Featured Post

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

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 post we will learn different types of Android Layout and some basics of an Android App.
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.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

617 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