1

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

This line of code which resides within a function:

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.

Tim Sylvester
  • 22,897
  • 2
  • 80
  • 94
mwieczorek
  • 2,107
  • 6
  • 31
  • 37

1 Answers1

6

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

ta.speot.is
  • 26,914
  • 8
  • 68
  • 96