AfxGetMaiwnd返回值是类型CWnd*,为什么不是CFrameWndAfxGetMaiwnd返回值是类型CWnd*,为什么不是CFrameWnd[解决办法]对于返回的指针强制转换为你确知的窗口类型即可