I am creating a form designer, I want to be able to draw a temporary
selction rect in the window, over all the child control.

I have a HWND of the window, I get a HDC.
I call PatBlt() to do my XOR drawing.

However the drawing only paint the empty are of the form, it doesn't alter
child control.

How could I paint over them ?

--
Lloyd Dupont, Software Architect
Get Your Data Mobile
http://www.ihookdb.com

Re: drawing on the child control by Louis

Louis
Thu Jun 24 01:27:08 CDT 2004

maybe the parent hwnd has ws_clipchildren set. if so, maybe try removing
it.

--
Louis Solomon
www.steelbytes.com


"Lloyd Dupont" <ld@NewsAccount.galador.net> wrote in message
news:eyYdsLaWEHA.3120@TK2MSFTNGP12.phx.gbl...
>I am creating a form designer, I want to be able to draw a temporary
> selction rect in the window, over all the child control.
>
> I have a HWND of the window, I get a HDC.
> I call PatBlt() to do my XOR drawing.
>
> However the drawing only paint the empty are of the form, it doesn't alter
> child control.
>
> How could I paint over them ?
>
> --
> Lloyd Dupont, Software Architect
> Get Your Data Mobile
> http://www.ihookdb.com
>
>



Re: drawing on the child control by Lloyd

Lloyd
Thu Jun 24 20:24:09 CDT 2004

thanks for that tip, it works great !

"Louis Solomon [SteelBytes]" <louis@steelbytes.spam-is-bad.com> wrote in
message news:%23r0AIRbWEHA.3716@TK2MSFTNGP11.phx.gbl...
> maybe the parent hwnd has ws_clipchildren set. if so, maybe try removing
> it.
>
> --
> Louis Solomon
> www.steelbytes.com
>
>
> "Lloyd Dupont" <ld@NewsAccount.galador.net> wrote in message
> news:eyYdsLaWEHA.3120@TK2MSFTNGP12.phx.gbl...
> >I am creating a form designer, I want to be able to draw a temporary
> > selction rect in the window, over all the child control.
> >
> > I have a HWND of the window, I get a HDC.
> > I call PatBlt() to do my XOR drawing.
> >
> > However the drawing only paint the empty are of the form, it doesn't
alter
> > child control.
> >
> > How could I paint over them ?
> >
> > --
> > Lloyd Dupont, Software Architect
> > Get Your Data Mobile
> > http://www.ihookdb.com
> >
> >
>
>