Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 812
  • Last Modified:

How to get CB_SHOWDROPDOWN message?

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
wuxz
Asked:
wuxz
1 Solution
 
Answers2000Commented:
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now