共用方式為


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

注意

The control must have the OLEMISC_ACTSLIKEBUTTON status bit set.

Requirements

Header: afxocc.h

See Also

Concepts

COleControlSite Class

COleControlSite Members

Hierarchy Chart

COleControlSite::IsDefaultButton

DECLARE_OLECTLTYPE