First, the debugger generates the "Property is read-only" warning message when the "GetParentFrame()->RecalcLayout();" line is executed in the void CTargetView::OnInitialUpdate() function. When the NI numeric control is removed from the window, the "Property is read-only" message disappears. 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() {
CFormV
iew::OnInitialUpdate();
GetParentFrame()->RecalcLayout();
ResizeParentToFit();
}