HELP with UpdateLayeredWindow

xelanoimis

Grünschnabel
Hi!
I'm sorry i don't know german, so if anyone can help me, please write in english or c++.

I try to create a layered window with some common controls on it, like a button or an edit box.
The problem is that i use UpdateLayeredWindow to give a bitmap with alpha transparency to my main window. And this is everything I see. My child controls are not painted.
I understand that if I do my own controls and make them paint themselfs in the bitmap given to the main layered window it wold be ok.

But how can I use some common controls ("BUTTON", "EDIT", etc) or even other more complex like a html view or other activx control?
Is there a way to force them to paint themselfs in a given DC? Or maybe to make them ignore the fact that their parent is a layered window?

I hope I don't need to make my own edit controls and stuff?

Please help me with a solution or someting!
Thanks!
 
i dont know if i understand you correctly but if so you could use borland cbuilder ..
(the only problem is : the compiler is a bit big( about 400mb))
because you can use a form window and put some button classes or edit-windows on it without writing your own edit controls
ide.gif



just like this you only have to put the classes on this field
..then you just need to write your functions
 
Zuletzt bearbeitet:
ahh... i already had a problem like that too...

i think its located in your windowProc..

if look al this:

case WM_PAINT:
//Paint the window there
return 0;

then there is a big mistake... u return 0 instead of lett the default window proc do it...

so replace that return 0; with a break;

and make shure that u call DefWindowProc after the switch!
 

Neue Beiträge

Zurück