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」をGoogleで検索
次に、最初のリンクをクリックします。
第三に、ページを読む
要件 ヘッダ:afxwin.h
要件
ヘッダ:afxwin.h
afxwin.h