The problem has become more serious. First, the debugger generates the "Property is read-only" warning message when the "GetParentFrame()->RecalcLayout();" line is executed in the void CTargetView::OnInitialUpdate() function. See code below.
Further, when accessing the variables inserted by the ClassWizard for the Numeric Edit control, such as the "Control" variable associated with the Numeric Edit box, the program generates an exception breakpoint in WINOCC.CPP, line 360, in the void CWnd::GetProperty() function
ASSERT(m_pCtrlSite!=NULL). Is this a bug?
Thank you for any help you can provide.
void CTargetView::OnInitialUpdate() {
CFormView::OnInitialUpdate();
GetParentFrame()->RecalcLayout();
ResizeParentToFit();
}