开发者

C++ Error: identifier "CWnd" is not defined

I'm very much a C++ newbie, so please bear with me.

This line of code which resides within a function:

开发者_StackOverflow社区CWnd* pWnd = CWnd::FindWindow("Shell_TrayWnd", "");

CWnd is coming up as "undefined". I know I need to define it in the global scope, but how? What header do I need to include to use this class? Project is MFC.

Using VS 2010.


Here's how to solve this problem independently.

First, Google for "cwnd"

Second, click the first link.

Third, read the page

Requirements

Header: afxwin.h

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜