Sign in Join
FPDoc Onlineexperiment

TWidgetSet.BeginPaint function

Member of TWidgetSetpublicIn unit InterfaceBase

Start painting in a window.

Declaration

pascal
function BeginPaint(Handle: hwnd; var PS: TPaintStruct): hdc; virtual

Arguments

Handle

The window Handle.

PS

Will receive painting information.

Function result

A Device Context for the window, Nil on failure.

Description

This function is for use in WM_PAINT handlers only. Not all platforms allow for painting outside WM_PAINT messages.

BeginPaint prepares the specified window for painting and fills a PAINTSTRUCT structure with information about the painting.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.