Draws an image into a destination device context, after performing a graphical operation on the image.
ListImage.Draw(hDC [,x] [,y] [,style])
x, y, style:Variant
Draws an image into a destination device context hDC , at x, y, and with style.
Style | Meaning |
---|---|
0 | (Default) Normal. Draws the image with no change. |
1 | Transparent. Draws the image using the MaskColor property to determine which color of the image will be transparent. |
2 | Selected. Draws the image dithered with the system highlight color. |
3 | Focus. Draws the image dithered and striped with the highlight color creating a hatched effect to indicate the image has the focus. |
OpenW 1, 30, 30, 300, 300 : AutoRedraw = 1
Cls 2
Ocx ImageList iml
iml.ImageWidth = 32
iml.ImageHeight = 32
iml.ColorFormat = 0
iml.MaskColor = colBtnFace
iml.UseMaskColor = True
iml.BackColor = colBtnFace
iml.ListImages.Add , "GFA", CreatePicture(LoadIcon(_INSTANCE, 1), False)
iml.ListImage(1).Draw Win_1.hDC, 40, 40, 1
Do : Sleep : Until Win_1 Is Nothing
{Created by Sjouke Hamstra; Last updated: 10/10/2014 by James Gaite}