COleControlSite::SetDefaultButton

Sets the control as the default button.

void SetDefaultButton( 
   BOOL bDefault  
);

Parameters

  • bDefault
    Nonzero if the control should become the default button; otherwise zero.

Remarks

Note

The control must have the OLEMISC_ACTSLIKEBUTTON status bit set.

Requirements

Header: afxocc.h

See Also

Reference

COleControlSite Class

Hierarchy Chart

COleControlSite::IsDefaultButton

DECLARE_OLECTLTYPE