COccManager::SetDefaultButton
Call this function to set the control as the default button.
static void AFX_CDECL SetDefaultButton(
CWnd* pWnd,
BOOL bDefault
);
Parameters
pWnd
A pointer to the window containing the control.bDefault
Nonzero if the control should become the default button; otherwise zero.
Return Value
Nonzero if successful; otherwise zero.
Remarks
Notes
The control must have the OLEMISC_ACTSLIKEBUTTON status bit set. For more information on OLEMISC flags, see the OLEMISC topic in the Windows SDK.
Requirements
Header: afxocc.h
See Also
Reference
COleControlSite::SetDefaultButton