Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是一个 C++ 新手,所以请多多包涵。
这行代码位于函数中:
CWnd* pWnd = CWnd::FindWindow("Shell_TrayWnd", "");
CWnd即将出现“未定义”。我知道我需要在全局范围内定义它,但是如何定义呢?我需要包含什么标题才能使用这个类?项目是MFC。
CWnd
使用 VS 2010。
以下是如何独立解决此问题。
一、谷歌搜索“cwnd”
其次,点击第一个链接。
三、阅读页面
要求 标题:afxwin.h
要求
标题:afxwin.h
afxwin.h