I am displaying some text in a window. I want to have a text cursor when I click the mouse left button. How can I do this?
danginkgo
I am displaying some text in a window. I want to have a text cursor when I click the mouse left button. How can I do this?
danginkgo
I want to have one diferent cursor for the keyboard. It must apear when I click the mouse left button.
danginkgo
OK, thank you for help.
danginkgo
How can I get the value of the alpha channel for every pixel in a bitmap?
danginkgo
OK, thank you :)
danginkgo
OK, thanks :)
danginkgo
OK, For example, I want to display the bitmap on a red background. The bitmap image has also a background ( a black pen on a gray background ). I want the bitmap background to be transparent, so the image (black pen)will apear on red background.
danginkgo
Ok, How can I draw the bitmap without the background?
danginkgo
I tried other values but it did't display the way I need. I want only the background to be complete transparent. The rest of the image must be opaque.
danginkgo
No, because the background is white, but there are some other white pixels within the bitmap. I don't want that all the white pixels to be transparent. The alpha channel is defined only for the background pixels.
danginkgo
I have a bitmap that has an alpha channel for the background. I tried using AlphaBlend, but the background was't displayed transparent. The background was white. This is the code that I'm using: BLENDFUNCTION blendF; blendF.BlendOp = AC_SRC_OVER; blendF.BlendFlags = 0; blendF.SourceConstantAlpha = 255; blendF.AlphaFormat = AC_SRC_ALPHA; POINT p; p.x=p.y=23; DPtoLP(hdcMem, &p, 1); AlphaBlend(lpdis->hDC, x, y, bm.bmWidth, bm.bmHeight, hdcMem, 0, 0, p.x,p.y, blendF);
Am I doing something wrong?
danginkgo
I am using GDI. Is alpha blending posible only with GDI+ ? I want to blend only the background. Thank You for the answers.
danginkgo
This is my BLENDFUNCTION struct: BLENDFUNCTION blendF; blendF.BlendOp = AC_SRC_OVER; blendF.BlendFlags = 0; blendF.SourceConstantAlpha = 255; blendF.AlphaFormat = AC_SRC_ALPHA;
The bitmap is 32 bpp with an alpha chanel. When I display the image using AlphaBlend() function the image looks the same as when I displayed it using BitBlt(). I want the background (wich has an alpha chanel) to be transparent. Is it posible using this function?
danginkgo
I can't figure it out... What shall I use to dispaly the bmp?
danginkgo
I want to display a bitmap that has an alpha chanel for the background. How can I make the alpha chanel transparent? I tried using AlphaBlend() but it doesn't work. Any suggestions?
danginkgo
OK, thanks, I'll try:)
danginkgo
OK, thanks
danginkgo
Thank you, but I still have a problem. I have the GIFs that I have to load for the buttons. The GIFs have transparent background. I must have transparent background images on my toolbar buttons. I can't obtain transparent background BMPs from those GIFs. I was hopping that I can use the GIFs. So, I can use only BMP and ICO for windows BUTTON class?
danginkgo
I use bitmaps for some toolbar buttons. Ex. In my .rc file I have: FLDWZOOM BITMAP MOVEABLE PURE "fldwzoom.bmp"
I my .cpp file I load the bitmaps for the buttons case IDM_ZOOM:hBitmap=LoadBitmap((HINSTANCEhResource, "FLDWZOOM"); break;
Can I load gif images instead of bitmaps? If I can, what function must I use?
danginkgo
Thanks, I'll try ;)
danginkgo