Because MFC didn't provide generic support for overriding WM_SETTEXT, you can use OnMessage(WM_SETTEXT, OnSetText) in the message map and then define your own method:
LRESULT CMyClass::OnSetText(wParam, lParam); //
jfriend@collabra.com, programmer.tools, 8/17/95