Winapi.Messages.TWMPaint

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TWMPaint = record

C++

struct DECLSPEC_DRECORD TWMPaint
{
public:
    unsigned Msg;
    HDC DC;
    NativeInt Unused;
    NativeInt Result;
};

Properties

Type Visibility Source Unit Parent
record
struct
public
Winapi.Messages.pas
Winapi.Messages.hpp
Winapi.Messages Winapi.Messages

Description

TWMPaint represents a Windows Paint message.

TWMPaint is the data structure used for all Windows Paint messages. The Msg field is the Windows message code. The DC field specifies handle to the device context that should be used for painting. This value should be assigned as the Handle property of the canvas of the object that needs painting. If DC is null, a valid device context must be obtained by calling the Windows API BeginPaint. The Unused field is not used. The Result field holds the value returned by the application processing the message.

See Also