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::FromHandle
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  static CWnd* FromHandle( HWND hWnd );
 
  Parameter   Description
 
  <hWnd>      A HWND of a Windows window.
 
  Remarks
 
  Returns a pointer to a CWnd object when given a handle to a window. If a
  CWnd object is not attached to the handle, a temporary CWnd object is
  created and attached.
 
  Return Value
 
  The pointer may be temporary, and should not be stored beyond immediate
  use.
 
  See Also
 
  CWnd::DeleteTempMap
 
 
                                     -♦-