This documentation is archived and is not being maintained.

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.

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.

Show: