SECMenuButton::AttachButton

BOOLSECMenuButton::AttachButton(intnCtlID, CWnd*pParentWnd, HMENUhMenu, Directiondirection, intiFlags= 0)

Attaches the SECMenuButton to a push button.

Defined in: SECBTNS.cpp

Return Value

Nonzero if the SECOwnerDrawButton was successfully attached; otherwise 0.

Parameters

nCtlID

Specifies the button resource ID to attach to.

pParentWnd

Pointer to the button's parent window.

hMenu

Handle to the popup menu.

direction

Direction of the arrow on the popup menu.

Comments

The style flags, iFlags, defines the behavior of the button. To use these styles, logically OR the ones you require and pass the result via the iFlags parameter. The only available styles is:

SEC_BTN_DEFAULT_ONFOCUS

The button will behave as default button when in focus.

iFlags

Specifies the style that defines the button's behavior. See Directions.

See Also

SECMenuButton  CreateDirections