The information in this article applies to:
SYMPTOMS
When you use the arrow keys to change between controls in a Visual C++ 4.0
generated container, the DISPID_AMBIENT_DISPLAYASDEFAULT ambient property
of the control site is not updated, and any control that relies on this
property doesn't function correctly.
CAUSEIn Occdlg.cpp, the following line 542 shouldn't be called:
This line keeps CheckDefPushButton from being called and the ambient
property from being updated.
RESOLUTIONThe best solution is to upgrade to Visual C++ 4.1. If this is not a possibility, the MFC DLL can be rebuilt without bCheckDef = FALSE; however, Microsoft recommends against this because you need to rebuild the DLL with a different name (see tech note 33). STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Visual C++ version 4.1. MORE INFORMATIONSample CodeThe following code can be added to the Button Control sample shipped with Visual C++ to demonstrate this problem.
Additional query words: 4.00 focus
Keywords : kbole kbMFC kbVC |
Last Reviewed: January 19, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |