The information in this article applies to:
SYMPTOMSIf the user has an extended combo box in a COlePropertyPage class, and uses the DDX_ functions and the DDP_ functions to set a control property with the extended combo box control, the property is not persisted when the selection is changed in the extended combo box. CAUSE
The problem is in the COlePropertyPage::OnCommand function in the Ctlppg.cpp file. This function calls the SetControlStatus and SetModifiedFlag functions in response to a CBN_EDITCHANGE notification message, but only if the class name of the window is "COMBOBOX". RESOLUTIONTo work around this problem, you can handle the CBN_EDITCHANGE notification and call SetControlStatus and SetModifiedFlag. The code for the message map and the handler function should resemble the following:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATIONSteps to Reproduce Behavior
Additional query words: DDP_CBString DDX_CBString DoDataExchange SetControlStatus SetModifiedFlag
Keywords : kbComboBox kbCOMt kbDlg kbMFC kbPersistSt kbPropSheet kbVC500bug kbVC600bug kbDSupport kbGrpMFCATL |
Last Reviewed: January 6, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |