Koliko se sećam ako je combo-box tipa drop-down list (bez mogućnosti editovanja) onda je edit porcija zapravo static kontrola, koja ne može da obrađuje evente. Rešenje je ili da pređeš na standardni drop-down (sa mogućnošću editovanja), ili da detektuješ Enter na nivou prozora i reaguješ ako je fokus na combo-boxu.
deerbeer: Cini mi se da se notifikacije salju samo parent kontroli tj. formi gde combo pripada ..
Probao sam i to.
Citat:
Mihajlo Cvetanović: Koliko se sećam ako je combo-box tipa drop-down list (bez mogućnosti editovanja) onda je edit porcija zapravo static kontrola, koja ne može da obrađuje evente. Rešenje je ili da pređeš na standardni drop-down (sa mogućnošću editovanja), ili da detektuješ Enter na nivou prozora i reaguješ ako je fokus na combo-boxu.
#
ON_CBN_EDITCHANGE The user has taken an action that may have altered the text in the edit-control portion of a combo box. Unlike the CBN_EDITUPDATE message, this message is sent after Windows updates the screen. It is not sent if the combo box has the CBS_DROPDOWNLIST style.
#
ON_CBN_EDITUPDATE The edit-control portion of a combo box is about to display altered text. This notification message is sent after the control has formatted the text but before it displays the text. It is not sent if the combo box has the CBS_DROPDOWNLIST style.