 it should be hierarchically derived from CCmdTarget.The advantage of Message Map is the same action can be mapped to more than one MFC class function.It is similar to handling the messages in SDK application using WndProc callback functions, but in MFC with the help OOPS concepts