SECMenuButton::Create
BOOLSECMenuButton::Create(LPCTSTRlpszCaption, DWORDdwStyle, const CRect&rect, CWnd*pParentWnd, intnID, HMENUhMenu, Directiondirection, intiFlags= 0)
Creates a SECMenuButton button control.
Defined in: SECBTNS.cpp
Return Value
Nonzero if the SECMenuButton button control was successfully created; otherwise 0.
Parameters
lpszCaption
Specifies the button control's caption.
dwStyle
Specifies the button control's style.
rect
Specifies the button control's size and position.
pParentWnd
Pointer to the button's parent window.
nID
Specifies the button resource ID.
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 AttachButtonDirections