With the approach you have started, ou need to get the mouse coordinates from the CPoint that's passed into OnMouseMove, format them into m_value, then call UpdateData.

I'd go for a CStatic rather than a CEdit.