IMsoComponent::OnAppActivate Method
Applies to: Office 2010
Notifies the component when the host application gains or loses activation.
void OnAppActivate(
BOOL fActive,
DWORD dwOtherThreadID
);
Parameters
fActive [in]
TRUE to indicate that the host application is being activated and the dwOtherThreadID parameter is the ID of the thread that owns the window being deactivated. FALSE to indicate that the host application is being deactivated and the dwOtherThreadID parameter is the ID of the thread that owns the window being activated.dwOtherThreadID [in]
The thread ID of the window that is being activated or deactivated.