[Win32] Alpha Blending without AlphaBlend(),
Members - Reputation: 144
Posted 12 October 2010 - 06:37 AM
Just wondering if its possible to do Alpha Blending with WS_CHILD windows without the use of the AlphaBlend() function. I'd like to implement my own alpha blending functions as I am doing my own custom drawing techniques, but I've run into a bit of a snag with blending between controls. I've tried using GetDIBits to pull the bits below, but that yields strange results. I might be doing something wrong in that case because I've assumed the format is ARGB (32 bit), but it appears to be different.
Anyone else fiddled around with something along these lines, or will I have to cut my losses and use the AlphaBlend function?
Thanks in advance!
Members - Reputation: 104
Posted 12 October 2010 - 04:21 PM
Do you want to alpha blend a window with any windows behind it such that it appears semi-transparent? In that case, SetLayeredWindowAttributes will do the trick. Even if you just want to blend child windows within your application's window i think you could still use SetLayeredWindowAttributes.
Or are you attempting to implement your own GUI framework and render the windows yourself?