Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CWnd::SetDlgCtrlID
Collapse the table of content
Expand the table of content

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.

Header: afxwin.h

Community Additions

ADD
Show:
© 2015 Microsoft