Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hpcvlx!bturner From: bturner@hpcvlx.HP.COM (Bill Turner) Newsgroups: comp.windows.ms Subject: Re: WM_PAINT message to a child window Message-ID: <106580043@hpcvlx.HP.COM> Date: 12 Jun 89 17:11:31 GMT References: <29541@ucbvax.BERKELEY.EDU> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 17 / hpcvlx:comp.windows.ms / kipnis@janus.berkeley.edu (Gary Kipnis) / 8:44 am Jun 8, 1989 / Hi, I am working on a program that spawns a child window and prints some text on it, for some reason this child window constantly get WM_PAINT message even though it's not blocked by any other window. any suggestions would be greately appreciated... gary ---------- The only thing I can think of is that the child window always receives at least one WM_PAINT message (when it is first displayed), and if you don't do at least BeginPaint/EndPaint for this message, then you will keep receiving it. (BTW, this is what DefWindowProc does for WM_PAINT). --Bill Turner (bturner@hp-pcd.hp.com) HP Corvallis Information Systems