Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Called by the framework to draw the ribbon element 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 a device context for the ribbon element.
- [in] strText 
 The display text.
- [in] nTextOffset 
 Distance, in pixels, from the left side of the list box to the display text.
- [in] rect 
 The display rectangle for the ribbon element.
- [in] bIsSelected 
 This parameter is not used.
- [in] bHighlighted 
 This parameter is not used.
Remarks
The commands list box displays ribbon elements to enable users to customize the quick access toolbar.
Requirements
Header: afxbaseribbonelement.h