How To Process a CBN_SELCHANGE Notification Message (66365)
The information in this article applies to:
- Microsoft Platform Software Development Kit (SDK) 1.0
- Microsoft Windows Software Development Kit (SDK) 3.0
- Microsoft Windows Software Development Kit (SDK) 3.1
This article was previously published under Q66365 SUMMARY
When a combo box receives a CBN_SELCHANGE notification message,
GetDlgItemText() will give the text of the previous selection and not
the text of the new selection.
To get the text of the new selection, send the CB_GETCURSEL message to
retrieve the index of the new selection and then send a CB_GETLBTEXT
message to obtain the text of that item.
Modification Type: | Minor | Last Reviewed: | 7/11/2005 |
---|
Keywords: | kbComboBox kbCtrl kbhowto KB66365 |
---|
|