How to create window with Transparency level starts from 0 to 100%?
-
How to create window with Transparency level starts from 0 to 100%? Left side transparency level = 0% Right side transparency level = 100% Is it possible to use AlphaBlend() API. Is it possible to use GradientFill() method of CDC. pls let me know with sample
-
How to create window with Transparency level starts from 0 to 100%? Left side transparency level = 0% Right side transparency level = 100% Is it possible to use AlphaBlend() API. Is it possible to use GradientFill() method of CDC. pls let me know with sample
read this article, it helps http://www.codeproject.com/KB/dialog/SemiTranDlgWithCtrls.aspx[^] You can give a background, Left side transparency level = 0% Right side transparency level = 100%
-
read this article, it helps http://www.codeproject.com/KB/dialog/SemiTranDlgWithCtrls.aspx[^] You can give a background, Left side transparency level = 0% Right side transparency level = 100%
Thanks 4 ur help. Ur link is helpful, but it uses GDIplus and it is not my requirement. I need to use only MFC. Anyway it will b useful if u explain the method Refresh() of class CImgBaseDialog in more detailed manner. I understood rest of the stuffs like hooking, unhooking, etc., Thanks n advance!!!
-
Thanks 4 ur help. Ur link is helpful, but it uses GDIplus and it is not my requirement. I need to use only MFC. Anyway it will b useful if u explain the method Refresh() of class CImgBaseDialog in more detailed manner. I understood rest of the stuffs like hooking, unhooking, etc., Thanks n advance!!!
The sample uses the GDI+ to load PNG / TIFF image. U can modify the code to use CXimage http://www.codeproject.com/KB/graphics/cximage.aspx[^] and normal GDI The Refresh() method in CImgBaseDialog works as the following: Paint the background first. Enumerate all child controls, and for each of them, send WM_PRINT to get the captured bitmap, paint at the same place of the fake window. Finally, caculate the position of caret, draw the caret. ---------------------------------------------------------------- English is not my native language