SECBitmapButton::AttachButton
Attaches the SECBitmapButton to a push button.
Defined in: SECBTNS.cpp
Syntax
BOOL AttachButton(int nCtlID, Alignment alignment, int nIDBmp, CWnd* pParentWnd);BOOL AttachButton(int nCtlID, Alignment alignment, LPCTSTR lpszBmpName, CWnd* pParentWnd)
Return Value
Nonzero if the SECBitmapButton was successfully attached; otherwise 0.
Parameters
nCtlID
Specifies the button resource ID to attach to.
alignment
Specifies how the bitmap and caption are to be aligned. See Alignment.
lpszBmpName
Bitmap resource name.
pParentWnd
Pointer to the button's parent window.
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 Also