I have a parent dialog with several child windows (dialogs). When the SIP
is shown and then hidden, the controls on the child window (edit boxes,
labels, etc) that were hidden by the SIP are erased! I cannot seem to force
the child window to redraw itself. Any suggestions?

Thanks,

buzz

Re: SIP erases child window controls! by KS

KS
Fri May 07 16:05:41 CDT 2004

Whenever part of a form gets hidden and gets "un" hidden, it calls the
OnPaint(). Did you override this method and then not allow it to do
anything in certain cases?

KS

"buzz" <buzz@buzz.com> wrote in message
news:eUgrgNHNEHA.2336@TK2MSFTNGP09.phx.gbl...
> I have a parent dialog with several child windows (dialogs). When the SIP
> is shown and then hidden, the controls on the child window (edit boxes,
> labels, etc) that were hidden by the SIP are erased! I cannot seem to
force
> the child window to redraw itself. Any suggestions?
>
> Thanks,
>
> buzz
>
>



Re: SIP erases child window controls! by buzz

buzz
Fri May 07 16:28:36 CDT 2004

Doh! I figured out the problem. The my child window base class was showing
the SIP before the child window is drawn (SetWindowPos), so the drawing area
was the client rect of the parent dialog minus the 80 pixels for the SIP.
So actually, the controls under the SIP were not be erased; they were never
drawn!

"buzz" <buzz@buzz.com> wrote in message
news:eUgrgNHNEHA.2336@TK2MSFTNGP09.phx.gbl...
> I have a parent dialog with several child windows (dialogs). When the SIP
> is shown and then hidden, the controls on the child window (edit boxes,
> labels, etc) that were hidden by the SIP are erased! I cannot seem to
force
> the child window to redraw itself. Any suggestions?
>
> Thanks,
>
> buzz
>
>