CDialog::SetDefID (MFC)

Switch View :
ScriptFree
MFC Library Reference 
CDialog::SetDefID 

Changes the default pushbutton control for a dialog box.


void SetDefID(
   UINT nID 
);

Parameters

nID

Specifies the ID of the pushbutton control that will become the default.

See Also

Reference

CDialog Class
Hierarchy Chart
CDialog::GetDefID

Other Resources

CDialog Members