CDialog::GotoDlgCtrl

Syntax

void GotoDlgCtrl( CWnd* pWndCtrl );

Parameters

pWndCtrl

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

Remarks

Moves the focus to the specified control in the dialog.

To get a pointer to the control (child window) to pass as pWndCtrl, call the GetDlgItem member function, which returns the pointer as a pointer to a CWnd object. This pointer can then be cast to its specific type. GetDlgItem is inherited from class CWnd.

See Also

CWnd::GetDlgItem, CDialog::PrevDlgCtrl, CDialog::NextDlgCtrl