ImlDrawConstants

Flag combinations passed to the Style parameter of ListImage.Draw. Multiple flags can be Or-combined to compose render styles.

' Draw a small icon with the focus rectangle overlaid:
ImageList1.ListImages("doc").Draw _
    PictureBox1.hDC, 0, 0, _
    WinNativeCommonCtls.ImlDrawTransparent Or WinNativeCommonCtls.ImlDrawFocus

Important

These members live in a Private part of the WinNativeCommonCtls package, so a project that references it the ordinary way cannot name them — ImlDrawTransparent on its own is TB5079 Unrecognized symbol. Set the package’s library symbol to *WinNativeCommonCtls and qualify the member, as the sample does. The asterisk is stripped from the name: the library is still written WinNativeCommonCtls in code.

Member Value Description
ImlDrawNormal 1 Render in the normal state (no overlays).
ImlDrawTransparent 2 Honour the image’s mask / alpha — transparent pixels stay transparent.
ImlDrawSelected 4 Render with the selection-color overlay (typically a blue tint).
ImlDrawFocus 8 Render with the focus-rectangle overlay (dotted border).
ImlDrawNoMask 16 Bypass the mask — draw the entire bitmap including pixels that would normally be transparent.

See Also