Called by the framework when the application is either selected or deselected.
afx_msg void OnActivateApp(
   BOOL bActive,
   DWORD dwThreadID
);
Parameters
- [in] bActive 
 TRUE if the application is selected; FALSE if the application is not selected.
- [in] dwThreadID 
 This parameter is not used.
Requirements
Header: afxframewndex.h