The information in this article applies to:
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.
MORE INFORMATIONWhen an application receives the CBN_SELCHANGE notification message, the edit/static portion of the combo box has not been updated. To obtain the new selection, send a CB_GETLBTEXT message to the combo box control. This message places the text of the new selection in a specified buffer. The following is a brief code fragment:
NOTE: For Win32 applications, change the WORD and LONG casts to WPARAM and
LPARAM, respectively.
Additional query words: combobox win16sdk
Keywords : kbComboBox kbCtrl kbNTOS kbWinOS2000 kbSDKWin32 kbGrpUser kbWinOS |
Last Reviewed: January 28, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |