Share via


CDialog::GotoDlgCtrl

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

void GotoDlgCtrl( 
   CWnd* pWndCtrl 
);

Parameters

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

Remarks

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.

Example

See the example for CWnd::GetDlgItem.

Requirements

Header: afxwin.h

See Also

Reference

CDialog Class

Hierarchy Chart

CWnd::GetDlgItem

CDialog::PrevDlgCtrl

CDialog::NextDlgCtrl