Well I guessed already that i'm trying to do something "unusual"..
like a Tab control, but that one is a beauty... :-)
the other guys sitting on top of him...
Hi Dani,
Are you trying to overlay controls on the same dialog? If so this will
be a
problem eventually for any kind of control. I've done the trick where I
overlay controls then hide or show just the ones that make sense at any
time, but those dialogs are difficult to maintain. I'm not sure what the
rules are for who gets to be on top (Z-order?), but it wouldn't make
sense
to have any control overlap any other control in regular practice.
I'm not sure this is what you are trying to do, just offering up some
opinion.
I've also had trouble with owner drawn controls where I want to put
something else on top of it (like a bitmap on top of an owner draw list
control). I could never get this to work and just worked around the
problem
(displayed the bitmap OR the list control OR made the bitmap part of the
list control drawing).
Tom
"Dani" <Dani@discussions.microsoft.com> wrote in message
news:EC032123-CD8C-4C11-815F-ACFF017C87D7@microsoft.com...
Thanks for the reply! :-)
But look at the Tab control in MFC. Try to put some controls over it.
You can see them... And they are not children of the Tab control...
"AliR (VC++ MVP)" wrote:
What do you mean by other controls on top of my control?
Sibiling controls should not overlap each other, if a control is
supposed
to
overlap another control, then the control that is on top should be a
child
of the control below it.
AliR.
"Dani" <Dani@discussions.microsoft.com> wrote in message
news:45CA6671-DC3E-460D-901E-96BEE18B88AB@microsoft.com...
Hi guys!
I'm having a bit of trouble with my owner-drawn custom controls in
MFC.
If there are other control on top of my custom controls, they are
hidden.
How can I fix this?
Should I use GetNextWindow in OnPaint and tell all the controls to
draw
themselves?
Or is there another way? or maybe i'm doing something wrong here...
Any idea appreciated,
Thanks