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::GetActiveWindow
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  static CWnd* GetActiveWindow();
 
  Remarks
 
  Retrieves a pointer to the active CWnd. The active CWnd is either the
  window that has the current input focus, or the window explicitly made
  active by the SetActiveWindow member function.
 
  Return Value
 
  The active window, or NULL if no window was active at the time of the
  call. The pointer may be temporary, and should not be stored beyond
  immediate use.
 
  See Also
 
  CWnd::SetActiveWindow, ::GetActiveWindow
 
 
                                     -♦-