Microsoft KB Archive/10216

{|
 * width="100%"|

Using EndPaint and BeginPaint

 * }

Q10216

-

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

Issue type :

Technology : kbAudDeveloper kbWin3xSearch kbSDKSearch kbWinSDKSearch kbWinSDK300 kbWinSDK310