Posted on 2002-03-18
The MFC application I am writing has Database DAO file support.
Its called TheoFrontEnd
I have an edit box on my main form that is displaying the wrong value.
The control is:
Its member varible is:
The applications CTheoFrontEndView::OnInitialUpdate()function looks like this:
//start code generated by MFC
m_pSet = &GetDocument()->m_theoFrontEndSet;
//end code generated by MFC
//start of my code
m_RecordCNT=m_pSet->GetRecordCount(); //counts the number of records in the table I have linked to
//end of my code
When I debug the app. the member variable m_RecordCNT DOES get the correct value! However, that values does not show up in the edit box that the member variable is attached to.
From what I can tell the
void CTheoFrontEndView::DoDataExchange(CDataExchange* pDX)
function is never getting called. (maybe)
Maybe I need to invalidate the rectangle that the edit box occupies. I don't know.
What do you think?