Loading Bitmaps transparent
-
Has anyone gotten the last paramter to LoadImage LR_TRANSPARENT to work? I myself have not...(image loads but with the white background that clashes with the window). Can anyone help me on this?
-
Has anyone gotten the last paramter to LoadImage LR_TRANSPARENT to work? I myself have not...(image loads but with the white background that clashes with the window). Can anyone help me on this?
if your talking about LR_LOADTRANSPARENT here is perhaps the answer. First of all LR_LOADTRANSPARENT does not load transparent image. it replace the first color by COLOR_WINDOW. COLOR_WINDOW is the backgroud color of edit,combobox... by defaut it's white. To change this color by another, you need to replace this color in your window theme. The second problem is that LR_LOADTRANSPARENT works only with 8bpp images. The easyest way to use real transparent images is to use CommonControls ImageList. If you only want to replace one backgroud color by another CommonControls CreateMappedBitmap is perhaps a best solution. Dimitri Rochette