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


CWnd::GetWindow

Returns a pointer to the window requested, or NULL if none.

CWnd* GetWindow(
   UINT nCmd 
) const;

Параметры

  • nCmd
    Specifies the relationship between CWnd and the returned window. It can take one of the following values:

    • GW_CHILD   Identifies the CWnd first child window.

    • GW_HWNDFIRST   If CWnd is a child window, returns the first sibling window. Otherwise, it returns the first top-level window in the list.

    • GW_HWNDLAST   If CWnd is a child window, returns the last sibling window. Otherwise, it returns the last top-level window in the list.

    • GW_HWNDNEXT   Returns the next window on the window manager's list.

    • GW_HWNDPREV   Returns the previous window on the window manager's list.

    • GW_OWNER   Identifies the CWnd owner.

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

The returned pointer may be temporary and should not be stored for later use.

Требования

Header: afxwin.h

См. также

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

CWnd Class

CWnd Members

Hierarchy Chart

CWnd::GetParent

CWnd::GetNextWindow

GetWindow