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


CWnd::GetForegroundWindow

Returns a pointer to the foreground window (the window with which the user is currently working).

static CWnd* PASCAL GetForegroundWindow( );

Возвращаемое значение

A pointer to the foreground window. This may be a temporary CWnd object.

Заметки

The foreground window applies only to top-level windows (frame windows or dialog boxes).

Требования

Header: afxwin.h

См. также

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

CWnd Class

CWnd Members

Hierarchy Chart

CWnd::SetForegroundWindow