Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CWnd::SetDlgCtrlID

 

Sets the window ID or control ID for the window to a new value.


      int SetDlgCtrlID(
   int nID 
);

nID

The new value to set for the control's identifier.

The previous identifier of the window, if successful; otherwise 0.

The window can be any child window, not only a control in a dialog box. The window cannot be a top-level window.

Requirements

Header: afxwin.h

Show: