Partager via


CMFCRibbonCheckBox Class

The CMFCRibbonCheckBox class implements a check box that you can add to a ribbon panel, Quick Access Toolbar, or popup menu.

class CMFCRibbonCheckBox : public CMFCRibbonButton

Members

Public Constructors

Name

Description

CMFCRibbonCheckBox::CMFCRibbonCheckBox

The constructor.

Public Methods

Name

Description

CMFCRibbonCheckBox::GetCompactSize

  (Overrides CMFCRibbonButton::GetCompactSize.)

CMFCRibbonCheckBox::GetIntermediateSize

  (Overrides CMFCRibbonButton::GetIntermediateSize.)

CMFCRibbonCheckBox::GetRegularSize

  (Overrides CMFCRibbonButton::GetRegularSize.)

CMFCRibbonCheckBox::IsDrawTooltipImage

  (Overrides CMFCRibbonButton::IsDrawTooltipImage.)

CMFCRibbonCheckBox::OnDraw

  (Overrides CMFCRibbonButton::OnDraw.)

CMFCRibbonCheckBox::OnDrawMenuImage

  (Overrides CMFCRibbonBaseElement::OnDrawMenuImage.)

CMFCRibbonCheckBox::OnDrawOnList

  (Overrides CMFCRibbonButton::OnDrawOnList.)

CMFCRibbonCheckBox::SetACCData

  (Overrides CMFCRibbonButton::SetACCData.)

Remarks

To use a CMFCRibbonCheckBox in your application, add the following constructor to your code:

CMFCRibbonCheckBox (UINT nID, LPCTSTR lpszText)

where nID is the check box command ID and lpszText is the text label of the check box.

You can add a check box to a ribbon panel by using CMFCRibbonPanel::Add.

Inheritance Hierarchy

CObject

   CMFCRibbonBaseElement

      CMFCRibbonButton

         CMFCRibbonCheckBox

Requirements

Header: afxribboncheckbox.h

See Also

Reference

Hierarchy Chart

CMFCRibbonPanel Class

Other Resources

MFC Classes