CWnd::OnActivate

This method is called by the framework when a CWnd object is being activated or deactivated. First, the main window being deactivated has OnActivate called, and then the main window being activated has OnActivate called. This method is called by the framework to allow your application to handle a Windows message.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

afx_msg void OnActivate( UINT nState, CWnd* pWndOther, BOOL bMinimized );