The information in this article applies to:
SYMPTOMSIf you have implemented an OLE control that uses a basic MFC CPropertySheet as a user interface, you may receive the following error when trying to switch pages by clicking the tab:
CAUSEThis assertion occurs in _AfxCheckDialogTemplate, when MFC cannot find the dialog template resource for the property page. RESOLUTIONThe solution is to override CPropertyPage::OnSetActive and use AFX_MANAGE_STATE as in the following code: Sample Code
The prototype for OnSetActive must also be added to your CPropertyPage-
derived class header file.
REFERENCESFor information on AFX_MANAGE_STATE, please see the following article in the Microsoft Knowledge Base: Q127074 How to Use AFX_MANAGE_STATE in an OLE Control Additional query words: kbvc200 kbvc210 kbvc220 kbvc400 kbmfc
Keywords : kbole kbMFC kbVC200 kbVC210 kbVC220 kbVC400 |
Last Reviewed: July 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |