Solved

How to get CB_SHOWDROPDOWN message?

Posted on 1998-10-16
1
742 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
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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…
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.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 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

10 Experts available now in Live!

Get 1:1 Help Now