CDialog::GotoDlgCtrl

Moves the focus to the specified control in the dialog box.

void GotoDlgCtrl(
   CWnd* pWndCtrl
);

Параметры

  • pWndCtrl
    Identifies the window (control) that is to receive the focus.

Заметки

To get a pointer to the control (child window) to pass as pWndCtrl, call the CWnd::GetDlgItem member function, which returns a pointer to a CWnd object.

Пример

See the example for CWnd::GetDlgItem.

Требования

Header: afxwin.h

См. также

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

CDialog Class

CDialog Members

Hierarchy Chart

CWnd::GetDlgItem

CDialog::PrevDlgCtrl

CDialog::NextDlgCtrl