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::OnActivateApp
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  afx_msg void OnActivateApp( BOOL  bActive, HANDLE  hTask );
 
  Parameter   Description
 
  <bActive>   Specifies whether the CWnd is being activated or
              deactivated. TRUE means the CWnd is being activated. FALSE
              means the CWnd is being deactivated.
 
  <hTask>     Specifies a task handle. If <bActive> is TRUE, the handle
              identifies the task that owns the CWnd being deactivated. If
              <bActive> is FALSE, the handle identifies the task that owns
              the CWnd being activated.
 
  Remarks
 
  Called when CWnd is about to be activated and CWnd belongs to a
  different task than the currently active window. OnActivateApp is called
  for all top-level windows of the task being activated, and for all
  top-level windows of the task being deactivated.
 
  This message-handler member function calls the Default member
  function. Override this member function in your derived class to handle
  the WM_ACTIVATEAPP message.
 
  See Also
 
  CWnd::Default, WM_ACTIVATEAPP
 
 
                                     -♦-