| BOOL CBCGPToolBarImages::DrawEx | ( | CDC * | pDC, |
| CRect | rect, | ||
| int | iImageIndex, | ||
| ImageAlignHorz | horzAlign = ImageAlignHorzLeft, |
||
| ImageAlignVert | vertAlign = ImageAlignVertTop, |
||
| CRect | rectSrc = CRect(0, 0, 0, 0), |
||
| BYTE | alphaSrc = 255, |
||
| BOOL | bIsIgnoreAlpha = FALSE, |
||
| UINT | nSimplifyState = 0 |
||
| ) |
Called when an image maintained by a toolbar images object need to be rendered.
Call this function to display the specified by iImageIndex image.
| pDC | A pointer to a device context. |
| rect | Specifies the image destination coordinates. |
| iImageIndex | Specifies the zero-based index of the image to be displayed. |
| horzAlign | Specifies image horizontal alignment. |
| vertAlign | Specifies image vertical alignment. |
| rectSrc | Specifies the image source coordinates. |
| alphaSrc | Alpha [0-255]. |
| bIsIgnoreAlpha | Specifies whether to draw image with alpha or not. |
| nSimplifyState | The icon simplification state is: 0 - don't simplify, 1 - simplify to a white icon, and 1 - inverse luminosity. |