ComboBox and mousebutton?
-
How can i catch the LBUTTONUP in the dropdownpart of a Combobox? What i would like to do is to know which item that has been clicked in the list. And the only thing that i can think of is catching the mousebutton and caluculate which item the user has clicked. Or is there another way?
-
How can i catch the LBUTTONUP in the dropdownpart of a Combobox? What i would like to do is to know which item that has been clicked in the list. And the only thing that i can think of is catching the mousebutton and caluculate which item the user has clicked. Or is there another way?
The combo box sends
CBN_SELENDOK
andCBN_SELENDCANCEL
messages when the drop list is closed. When you receiveCBN_SELENDOK
, useCB_GETCURSEL
to get the selected item. --Mike-- Looks like I picked the wrong week to stop sniffing glue. 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm -
The combo box sends
CBN_SELENDOK
andCBN_SELENDCANCEL
messages when the drop list is closed. When you receiveCBN_SELENDOK
, useCB_GETCURSEL
to get the selected item. --Mike-- Looks like I picked the wrong week to stop sniffing glue. 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_HelmThanks for the reply. Unfortunately that doesn't work for me. Maybe i should have said that i'm using the CCheckComboBox that can be found on this site. And when a item is selected the list doesn't close. The user can check/uncheck mutiple items before the list is closed. I could go through all the items when the list is closed and look for what the user has selected. But to catch when the mousebutton is pressed on a item would be a better solution. If it is possible.
-
How can i catch the LBUTTONUP in the dropdownpart of a Combobox? What i would like to do is to know which item that has been clicked in the list. And the only thing that i can think of is catching the mousebutton and caluculate which item the user has clicked. Or is there another way?
You need to handle the
CBN_SELCHANGE
notification from the control.
Software Zen:
delete this;