共用方式為


CMFCCaptionButton::GetHit

Returns the command represented by the button.

UINT GetHit() const;

Return Value

The command represented by the button.

The following table lists possible return values.

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.

Requirements

Header: afxcaptionbutton.h

See Also

Reference

CMFCCaptionButton Class

Hierarchy Chart