XLL+ Class Library (6.3)

CXlControlOK::SetDefault

Sets whether the button is triggered by the Enter key

void SetDefault(
   bool bDefault
);

Parameters

bDefault

If bDefault is true, then the button will be deemed to have been pressed whenever the user presses the Enter key or double-clicks on a list-box, check-box or option button.

Remarks

Sets the default state of the control. If true, then the button will be deemed to have been pressed whenever the user presses the Enter key or double-clicks on a list-box, check-box or option button.

Requirements

Header: xldialog.h

See Also

CXlControlOK Class | CXlControlOK Methods