I am facing a strange problem.
Maybe it's a wrong approach, but let's give it a try.
So, I have a container(C), in which I have a bigger control(A).
So A's rect is not inside C's rect.
A's Draw(TRect r) -(from CCoecontrol) gets called with the rect of A intersected with rect of C.
This seems to be pretty nice, but the draw of A does not use the parameter, it draws itself inside his own rect (Rect()).
Let's say that A is CEikLabel.
How can I force A not to draw outside parents rect?
I've got a partial solution for this:
Make C window owning. But if I make it window owning, the connection to it's parent is lost.
So if I want to make C transparent, this method does not seems to resolve the problem.
Or other approach...How can I force a control to draw on a backbuffer (syncronius)?