DOCUMENT:Q10216 06-NOV-1999 [win16sdk] TITLE :Using EndPaint() and BeginPaint() PRODUCT :Microsoft Windows Software Development Kit PROD/VER:WINDOWS:3.0,3.1 OPER/SYS: KEYWORDS:kb16bitonly ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Windows Software Development Kit (SDK) versions 3.0, 3.1 ------------------------------------------------------------------------------- SUMMARY ======= The PAINTSTRUCT structure contains information for an application that can be used to paint the client area of a window owned by that application. The PAINTSTRUCT data structure is automatically updated by the BeginPaint() function; if a window has been restored, BeginPaint() will update the PAINTSTRUCT fields (for example, fRestore). The application would be duplicating effort if it also updated the fields of the PAINTSTRUCT after a window is restored. The EndPaint() procedure is required after BeginPaint(). The application only needs to be concerned about its own paint procedure that comes between BeginPaint() and EndPaint(). For additional information on the PAINTSTRUCT data structure, see page 7-55 in the "Microsoft Windows Software Development Kit Reference Volume 2" for version 3.0 of the Windows SDK, and page 384 in the "Microsoft Windows Software Development Kit Programmer's Reference, Volume 3: Messages, Structures, and Macros" for version 3.1 of the Windows SDK. Additional query words: 3.00 3.10 ====================================================================== Keywords : kb16bitonly Technology : kbAudDeveloper kbWin3xSearch kbSDKSearch kbWinSDKSearch kbWinSDK300 kbWinSDK310 Version : WINDOWS:3.0,3.1 ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1999.