共用方式為


CMFCToolBarImages::DrawEx

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

BOOL DrawEx(
   CDC* pDC,
   CRect rect,
   int iImageIndex,
   ImageAlignHorz horzAlign = ImageAlignHorzLeft,
   ImageAlignVert vertAlign = ImageAlignVertTop,
   CRect rectSrc = CRect(0,
    0,
    0,
    0),
   BYTE alphaSrc = 255
);

Parameters

  • [in] pDC
     

  • [in] rect
     

  • [in] iImageIndex
     

  • [in] horzAlign
     

  • [in] vertAlign
     

  • [in] rectSrc
     

  • [in] 0
     

  • [in] 0)
     

  • [in] alphaSrc
     

Requirements

Header: afxtoolbarimages.h

See Also

Reference

CMFCToolBarImages Class

Hierarchy Chart