Share via


CMFCCaptionButton::CMFCCaptionButton

Constructs a CMFCCaptionButton object.

CMFCCaptionButton();
CMFCCaptionButton(
   UINT nHit,
   BOOL bLeftAlign = FALSE
);

Parameters

  • [in] nHit
    The command associated with the button.

  • [in] bLeftAlign
    Specifies whether the button is aligned to the left.

The following table lists possible values for the nHit parameter.

Value

Command

AFX_HTCLOSE

Close button.

HTMINBUTTON

Minimize button.

HTMAXBUTTON

Maximize button.

AFX_HTLEFTBUTTON

Left arrow button.

AFX_HTRIGHTBUTTON

Right arrow button.

AFX_HTMENU

Down arrow menu button.

HTNOWHERE

The default value; represents no command.

Remarks

By default, caption buttons are not associated with a command.

Caption buttons are aligned either on the right or left.

Requirements

Header: afxcaptionbutton.h

See Also

Reference

CMFCCaptionButton Class

Hierarchy Chart