SECBitmapButton::Create

Creates a SECBitmapButton button control.

Defined in: SECBTNS.cpp

Syntax

BOOL Create(LPCTSTR lpszCaption, DWORD dwStyle, Alignment alignment, LPCTSTR lpszBmpName, const CRect& rect, CWnd* pParentWnd, int nID)

BOOL Create(LPCTSTR lpszCaption, DWORD dwStyle, Alignment alignment, int nIDBmp, const CRect& rect, CWnd* pParentWnd, int nID)

Return Value

Nonzero if the SECBitmapButton button control was successfully created; otherwise 0.

Parameters

lpszCaption

Specifies the button control's caption.

dwStyle

Specifies the button control's style.

alignment

Specifies how the bitmap and caption are to be aligned. See Alignment.

lpszBmpName

Specifies the Bitmap resource name.

nIDBmp

Bitmap resource ID.

rect

Specifies the button control's size and position.

pParentWnd

Pointer to the button's parent window.

nID

Specifies the button resource ID.

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

SECBitmapButton AttachButton