1) There might be a name conflict, and therefore you have to specify class name, like following:



ON_MESSAGE(WM_SETTEXT, &CWnd::OnSetText)