kipnis@janus.berkeley.edu (Gary Kipnis) (06/08/89)
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
bturner@hpcvlx.HP.COM (Bill Turner) (06/13/89)
/ 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