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.
CWnd::GetDlgItem
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  CWnd* GetDlgItem( int nID ) const;
 
  Parameter   Description
 
  <nID>       Specifies the integer ID of the item to be retrieved.
 
  Remarks
 
  Retrieves a pointer to the specified control in a dialog box.
 
  Can be used with any parent-child pair, not just a dialog box, as long
  as the child window has a unique ID (as specified by the <nID> parameter
  in the Create member function that created the child window).
 
  The pointer returned is usually cast to the type of control identified
  by <nID>.
 
  Return Value
 
  A pointer to the given control. If no control with the integer ID given
  by the <nID> parameter exists, the value is NULL.
 
  The returned pointer may be temporary, and should not be stored.
 
  See Also
 
  CWnd::Create, CWnd::GetWindow, ::GetDlgItem
 
 
                                     -♦-