Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!think!paperboy!snorkelwacker!mit-eddie!uw-beaver!Teknowledge.COM!unix!hplabs!hp-pcd!hpcvlx!bturner From: bturner@hpcvlx.cv.hp.com (Bill Turner) Newsgroups: comp.windows.ms Subject: Re: Programming problem... Message-ID: <106580082@hpcvlx.cv.hp.com> Date: 27 Feb 90 18:03:30 GMT References: <90Feb26.202650est.10553@ephemeral.ai.toronto.edu> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 12 > I am writing an application with the SDK. The problem I am having is that > whenever I process a WM_PAINT message, it seems that the entire window has > been invalidated and that it must repaint the whole thing. This is not > supposed to happen. You can check to see what Windows thinks is invalid by checking the rcPaint field in the paint structure returned from BeginPaint. If you are calling InvalidateRect with non-NULL (and partial window) rectangles, then it should do clipping correctly, and only repaint in part of the window. --Bill Turner (bturner@hp-pcd.hp.com) HP Interface Technology Operation