Re: win32lib and child windows
- Posted by Derek Parnell <ddparnell at bigpond.com> Feb 24, 2003
- 441 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