Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CDialog::GotoDlgCtrl
CDialog                                     Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void GotoDlgCtrl( CWnd* pWndCtrl );
 
  Parameter   Description
 
  <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 CWnd::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
 
 
                                     -♦-