CWnd是窗口消息 CCmdTarget是CWnd的父类,所以CCmdTarget是不能接受到子类CWnd所才有的WM消息 而子类CWnd可以接受父类CCmdTarget所产生的WM_COMMAND消息