Share via


CFrameWndEx::OnActivate

The framework calls this method when user input is switched to or away from the frame.

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

Parameters

  • [in] nState
    Whether the frame is active or inactive. See the table in the Remarks section for possible values.

  • [in] pWndOther
    Pointer to another window that is switching user input with the current one.

  • [in] bMinimized
    The minimized state of the frame. TRUE if the frame is minimized; otherwise, FALSE.

Remarks

The following table lists the possible values for the nState parameter.

  • WA_ACTIVE
    The frame is selected by a method other than a mouse click.

  • WA_CLICKACTIVE
    The frame is selected by a mouse click.

  • WA_INACTIVE
    The frame is not selected.

Requirements

Header: afxframewndex.h

See Also

Reference

CFrameWndEx Class

Hierarchy Chart