Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to get CB_SHOWDROPDOWN message?

Posted on 1998-10-16
1
Medium Priority
?
797 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 150 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

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…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

715 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