Contents of an EditBox
Posted on 2002-03-23
I have an MFC project where the main form is based on CDAORecordView.
The EditBox's ID is: IDC_EDIT_CurrentRecord
its value member variable is long m_CurrentRecord.
its control member variable is CEdit m_CurrentRecordCTRL.
As I use the record selectors in the toolbar I have use the GetAbsolutePosition function to update the m_CurrentRecord member variable.
During runtime, when I change the value of the EditBox I want the form to Move to the record number in the EditBox.
The following code compiles with no errors.
// TODO: Add your control notification handler code here
The problem is the GetDlgItemText returns NULL.
How can I get the contents of the EditBox independant of its member variable?
Am I approching this problem all wrong?