 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Mattias Andersson Guest
|
Posted: Tue Nov 04, 2003 11:41 pm Post subject: Painting on top of child controls |
|
|
Hello,
I am writing a TWinControl descendant and I need to be able to paint on top
of any of the associated child controls. How would I go about doing this? Do
I have to trap the WM_PAINT message and manually write my own paint sequence
(similarly to the PaintHandler method in TWinControl), e.g.:
DC := BeginPaint( ... );
for each child do
ExcludeClipRect(DC, ... );
PaintWindow(DC);
PaintControls(DC, nil);
PaintOverlay(DC); // here we paint on top of the child controls
EndPaint( ... );
Would this do the trick? If not, is there another way to achieve the desired
effect?
Thanks in advance,
Mattias
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|