Condividi tramite


CMFCRibbonCheckBox::OnDrawOnList

Called by the framework to draw the checkbox in a commands list box.

virtual void OnDrawOnList(
   CDC* pDC,
   CString strText,
   int nTextOffset,
   CRect rect,
   BOOL bIsSelected,
   BOOL bHighlighted
);

Parameters

  • [in] pDC
    Pointer to the device context in which to draw the checkbox.

  • [in] strText
    The display text.

  • [in] nTextOffset
    The distance, in pixels, from the left side of the list box to the display text.

  • [in] rect
    The display rectangle for the checkbox.

  • [in] bIsSelected
    TRUE if the checkbox is selected, or FALSE if not.

  • [in] bHighlighted
    TRUE if the checkbox is highlighted, or FALSE if not.

Requirements

Header: afxribboncheckbox.h

See Also

Reference

CMFCRibbonCheckBox Class

Hierarchy Chart