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


CWnd::SetDlgCtrlID

Sets the window ID or control ID for the window to a new value.

int SetDlgCtrlID(
   int nID 
);

Параметры

  • nID
    The new value to set for the control's identifier.

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

The previous identifier of the window, if successful; otherwise 0.

Заметки

The window can be any child window, not only a control in a dialog box. The window cannot be a top-level window.

Требования

Header: afxwin.h

См. также

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

CWnd Class

CWnd Members

Hierarchy Chart

CWnd::GetDlgCtrlID

CWnd::Create

CWnd::CreateEx

CWnd::GetDlgItem