Condividi tramite


COccManager::GetDefBtnCode

Call this function to determine if the control is a default push button.

static DWORD AFX_CDECL GetDefBtnCode( 
   CWnd* pWnd  
);

Parameters

  • pWnd
    The window object containing the button control.

Return Value

One of the following values:

  • DLGC_DEFPUSHBUTTON   Control is the default button in the dialog.

  • DLGC_UNDEFPUSHBUTTON   Control is not the default button in the dialog.

  • 0   Control is not a button.

Requirements

Header: afxocc.h

See Also

Reference

COccManager Class

Hierarchy Chart