1. win32lib and child windows
- Posted by Raudaun Long <LilFreak02_ at hotmail.com> Feb 24, 2003
- 456 views
Any reason why a simulated MDI interface using a parent window and several child windows would cause the child windows to not redraw when they get focus? The styles of the parent window are: styles = {WS_THICKFRAME, WS_SYSMENU, WS_MINIMIZEBOX, WS_MAXIMIZEBOX} ex_styles = {WS_EX_CLIENTEDGE} The child styles are: styles = {WS_CHILD, WS_BORDER, WS_THICKFRAME, WS_CAPTION, WS_SYSMENU, WS_MINIMIZEBOX, WS_MAXIMIZEBOX} ex_styles = {0}
2. Re: win32lib and child windows
- Posted by Derek Parnell <ddparnell at bigpond.com> Feb 24, 2003
- 459 views
On Mon, 24 Feb 2003 04:26:47 +0000, Raudaun Long <LilFreak02_ at hotmail.com> wrote: > > Any reason why a simulated MDI interface using a parent window and > several child windows would cause the child windows to not redraw when > they get focus? The styles of the parent window are: > > styles = {WS_THICKFRAME, WS_SYSMENU, WS_MINIMIZEBOX, WS_MAXIMIZEBOX} > > ex_styles = {WS_EX_CLIENTEDGE} > > The child styles are: > > styles = {WS_CHILD, WS_BORDER, WS_THICKFRAME, WS_CAPTION, WS_SYSMENU, > WS_MINIMIZEBOX, WS_MAXIMIZEBOX} > > ex_styles = {0} Does adding WS_VISIBLE to the child style help? -- cheers, Derek Parnell
3. Re: win32lib and child windows
- Posted by Derek Parnell <ddparnell at bigpond.com> Feb 24, 2003
- 440 views
On Mon, 24 Feb 2003 04:46:54 +0000, Raudaun Long <LilFreak02_ at hotmail.com> wrote: > > > Derek Parnell wrote: >> On Mon, 24 Feb 2003 04:26:47 +0000, Raudaun Long >> <LilFreak02_ at hotmail.com> wrote: >> >> > >> > Any reason why a simulated MDI interface using a parent window and > >> several child windows would cause the child windows to not redraw when > >> they get focus? The styles of the parent window are: >> > >> > styles = {WS_THICKFRAME, WS_SYSMENU, WS_MINIMIZEBOX, WS_MAXIMIZEBOX} >> > >> > ex_styles = {WS_EX_CLIENTEDGE} >> > >> > The child styles are: >> > >> > styles = {WS_CHILD, WS_BORDER, WS_THICKFRAME, WS_CAPTION, WS_SYSMENU, >> > WS_MINIMIZEBOX, WS_MAXIMIZEBOX} >> > >> > ex_styles = {0} >> >> Does adding WS_VISIBLE to the child style help? >> >> -- >> >> cheers, >> Derek Parnell >> >> > Just tried it and no still the same effect > Actually, now that you mention it, I've seen this too. In my case, only some of the controls in the child window are not redrawn, and then only when first displayed. To get around this, I did an explicit refreshWindow(mychildwin) call in the w32HActivate handler. Can you send me the smallest example code that demostrates the effect you have? -- cheers, Derek Parnell
4. Re: win32lib and child windows
- Posted by Derek Parnell <ddparnell at bigpond.com> Feb 25, 2003
- 417 views
=A0 WS_CLIBSIBLINGS works. This is what I did... =A0 In the CreateChildWindow() routine, I replace the Window creation call = with this... =A0 new_wnd[1] =3D createEx( Window, title, parent_hwnd, Default, Default, = 320, 240, or_bits(WS_CHILD,WS_CLIPSIBLINGS), {0} ) =A0 All the other bits you had are the default ones anyhow. =A0 And now it looks great. I like how you are doing this. -- =A0 cheers, Derek Parnell --- sorry if this gets onto the list multiple times. My email client is = acting up. -------------------------------------------------------------------- CAUTION - This email and any files attached may contain privileged and confidential information intended solely for the use of the individual = or entity to whom they are addressed. If you are not the intended = recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify the sender immediately. = Any views expressed in this message are those of the individual sender and = may not necessarily reflect the views of Global Technology Australasia = Limited. --------------------------------------------------------------------