Hi
Is there a function that creates for e.g. 50% transparent color?
Is this function in windows GUI or shall I use some other interface for this?
I am looking for some very simple function like CreateSolidBrush() or something like that.
THX
Hi
Is there a function that creates for e.g. 50% transparent color?
Is this function in windows GUI or shall I use some other interface for this?
I am looking for some very simple function like CreateSolidBrush() or something like that.
THX
You need the Windows Presentation Foundation to have transparent windows. Prior to that, you can mask out parts or you can copy the background and do your own alpha blending, but you can't make windows transparent.
For simple transparent drawing, you can draw in an offscreen buffer and use AlphaBlend to copy the result to the target.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
Depending on what _exactly_ you want to do....
Have a look at SetBkMode() using TRANSPARENT.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
Layered windows maybe?
"The Internet treats censorship as damage and routes around it." - John Gilmore
I need the transparecy because I am creating a sort of aplication which work similarly as Windows desktop (but working with bitmaps not icons) when I click and hold the left button a rectangle should appear... When I move the mouse the rectangle should change its shape... This all works just fine but I need the rectangle to be about 50% transparent so the bitmaps under it are seen...