Using the VPE ActiveX in a CFormView derived class

<< Click to Display Table of Contents >>

Navigation:  How To Use the VPE Control > VPE ActiveX >

Using the VPE ActiveX in a CFormView derived class

Previous pageReturn to chapter overviewNext page
Q: If I use the VPE ActiveX in a CFormView derived class, the control is not updated after a call to CFormView::Invalidate() or CDocument::UpdateAllViews().
A:Set the style of the dialog resource containing the VPE ActiveX to "Clip Children" (do not change the style in PreCreateWindow()). You can also call CVpeControl::UpdateWindow() in the overridden CFormView::OnUpdate() method.