Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CWnd::FindWindow
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  static CWnd* FindWindow( const char FAR* lpClassName,
                           const char FAR* lpWindowName );
 
  Parameter      Description
 
  <lpClassName>  Points to a null-terminated string that specifies the
                 window's class name. If <lpClassName> is NULL, all class
                 names match (a WNDCLASS struct).
 
  <lpWindowName> Points to a null-terminated string that specifies the
                 window name (the window's text caption). If
                 <lpWindowName> is NULL, all window names match.
 
  Remarks
 
  Returns the CWnd whose class is given by <lpClassName> and whose window
  name, or caption, is given by <lpWindowName>. This function does not
  search child windows.
 
  Return Value
 
  Identifies the window that has the specified class name and window name.
  It is NULL if no such window is found.
 
  The CWnd* may be temporary and should not be stored for later use.
 
  See Also
 
  ::FindWindow
 
 
                                     -♦-