The information in this article applies to:
SYMPTOMSAn invisible run-time ActiveX control is visible at run time if it is the only control on a dialog box. CAUSEThis problem occurs because there is no other control the focus can be set to, so AppWizard-generated MFC code sets focus to the only control there (that is, returns TRUE in the OnInitDialog() function of your CDialog- derived class), and therefore activates it. RESOLUTIONChange the return value of the OnInitDialog() function in your derived CDialog class from TRUE to FALSE. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATIONSteps to Reproduce Behavior
(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Yeong- Kah Tam, Microsoft Corporation Additional query words: kbDSupport ocx kbvc500bug kbVC600bug kbMFC kbOLE
Keywords : kbVC600bug |
Last Reviewed: August 5, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |