The information in this article applies to:
SYMPTOMSUnder certain circumstances, The Microsoft Web Browser Control may appear to hang when used in a CFormView derived class. The control will actually be caught in an infinitely cascading loop of focus messages. CAUSE
MFC has to handle focus for child items in the modeless dialog in a
CFormView. RESOLUTION
To avoid this problem, it is necessary to handle the WM_SETFOCUS message.
This handler can be added with the Class Wizard. To do this, it
Is necessary to change the Class Wizard Message Filter. This can be done
by choosing the Class Info tab of the Class Wizard and selecting Window as
the message filter for the class under Advanced Options. Once this is
done, you will be able to select WM_SETFOCUS in the Message Maps tab for
the CFormView derived class.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been corrected in Visual
Studio 97 Service Pack 1. Q170365 INFO: Visual Studio 97 Service Packs - What, Where, and Why MORE INFORMATION
The following illustrates a situation in which this problem might occur:
Additional query words: kbVC400bug
Keywords : kbole kbMFC kbVC400bug kbVC410bug kbVC420bug kbVC500bug kbVS97sp1fix |
Last Reviewed: August 5, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |