Solved

How to get CB_SHOWDROPDOWN message?

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expand LInux Boot partition remotly 3 90
how do i create updater to My Activex application? 3 88
Named range not carried over 10 63
sumNumber challenge 16 122
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 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