Поделиться через


CMDIFrameWnd::MDIActivate

Activates a different MDI child window.

void MDIActivate(
   CWnd* pWndActivate 
);

Параметры

  • pWndActivate
    Points to the MDI child window to be activated.

Заметки

This member function sends the WM_MDIACTIVATE message to both the child window being activated and the child window being deactivated.

This is the same message that is sent if the user changes the focus to an MDI child window by using the mouse or keyboard.

ПримечаниеПримечание.

An MDI child window is activated independently of the MDI frame window. When the frame becomes active, the child window that was last activated is sent a WM_NCACTIVATE message to draw an active window frame and caption bar, but it does not receive another WM_MDIACTIVATE message.

Пример

See the example for CMDIFrameWnd::GetWindowMenuPopup.

Требования

Header: afxwin.h

См. также

Основные понятия

CMDIFrameWnd Class

CMDIFrameWnd Members

Hierarchy Chart

CMDIFrameWnd::MDIGetActive

CMDIFrameWnd::MDINext

CWnd::OnActivate

WM_NCACTIVATE