Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hpcvlx!bturner From: bturner@hpcvlx.HP.COM (Bill Turner) Newsgroups: comp.windows.ms Subject: Re: Refresh problem for child window titlebar Message-ID: <106580041@hpcvlx.HP.COM> Date: 2 Jun 89 17:14:34 GMT References: <8906011349.AA04577@king.csri.toronto.edu> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 16 >I am writing a Presentation Manager program that is basically >a client window controlling a child window. Since the child >window is on top of the client window, when processing >WM_PAINT in the client window, I do WinInvalidateRect(childwindow,.. >as well as childwindowframe just before returning. >The result is that the title bar is missing in the child window. > >Has anyone seen this problem? A fix somewhere? The probable cause is that the parent needs to be created with clipchildren. (At least, this is a problem that I have seen in MSWindows). The problem is that the child's frame is being drawn first, then the parent's client area erases and does its repaint (erasing the frame), then the child's client area paints. --Bill Turner (bturner@hp-pcd.hp.com) HP Corvallis Information Systems