Click here to Skip to main content
15,895,746 members

Comments by Atroc (Top 2 by date)

Atroc 20-Oct-11 18:41pm View    
Ok I'm working on the buffering stuff. I'll update asap. Need to study it since I've never used double buffering before lol.
Edit: Alright, it works now. I used BitBblt and draw my hover images on a new WS_EX_LAYERED | WS_EX_TRANSPARENT window that i keep over my original window so i don't redraw the entire contents (aka background) every time which is a waste imo. Just need to polish some weird behavior but I'm sure is more bad code than anything else. This problem is solved. Thanks Code-o-mat.
Atroc 20-Oct-11 12:22pm View    
Not really, do you mean creating the entire contents of my window with the hover image and calling another UpdateLayeredWindow? Didn't try that, sounded like a really bad solution for me, is there a way to update only the part where the button is using updatelayeredwindow?

Edit: Imagine the home button on top of the page. I want to create an effect like what you see when your mouse is above the home link, it changes the appearance. How can I do that if my background image is created on a WS_EX_LAYERE and using UpdateLayeredWindow after the drawing.