Sign in Join
FPDoc Onlineexperiment

TControl.GetDeviceContext function

Member of TControlprotectedIn unit Controls

Returns a device context handle for the control, from Parent.

Declaration

pascal
function GetDeviceContext(var WindowHandle: HWND): HDC; virtual

Arguments

WindowHandle

Returns the window handle of the device context.

Function result

The device context.

Description

Initializes the device context position to the control origin, and shrinks its clipping rectangle to the bounds for the control.

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