Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
WM_PAINT (1.2)
◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_WINMESSAGEMGR
WM_PAINT
The WM_PAINT message is sent when a window is to be repainted. An
application can get a presentation space for drawing by calling
WinBeginPaint. The presentation space will be clipped to the area of the
window that is to be painted.
This message does not use any parameters.
Return Value
An application should return zero if it processes this message.
Example
This example shows how an application gets a presentation space for drawing
by calling the WinBeginPaint function. When drawing is complete, the
WinEndPaint function is called to release the presentation space.
case WM_PAINT:
hps = WinBeginPaint(hwnd, NULL, &rcl);
.
. /* drawing routines would go here */
.
WinEndPaint(hps);
return (0L);
See Also
WinBeginPaint, WinEndPaint, WM_ERASEBACKGROUND
♦