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::SetActiveWindow
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  CWnd* SetActiveWindow();
 
  Remarks
 
  Makes CWnd the active window.
 
  The SetActiveWindow member function should be used with care since it
  allows an application to arbitrarily take over the active window and
  input focus. Normally, Windows takes care of all activation.
 
  Return Value
 
  The identity of the window that was previously active.
 
  The returned pointer may be temporary, and should not be stored.
 
  See Also
 
  ::SetActiveWindow, CWnd::GetActiveWindow
 
 
                                     -♦-