BUG: Invisible at Run Time ActiveX Control, Visible at Run TimeID: Q189585
|
An invisible run-time ActiveX control is visible at run time if it is the only control on a dialog box.
This 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.
Change the return value of the OnInitDialog() function in your derived CDialog class from TRUE to FALSE.
Microsoft 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.
Additional query words: kbDSupport ocx kbvc500bug kbVC600bug kbMFC kbOLE
Keywords : kbVC600bug
Version : WINNT:5.0,6.0
Platform : winnt
Issue type : kbbug
Last Reviewed: August 5, 1999