GetClientDC method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

L_HDC GetClientDC (void);

Delphi Syntax

GetClientDC: L_HDC;

Overview

Refer to Using the Windows API.

Remarks

Returns the device context of the Main Control's client area on the screen. You can use the device context with Windows API functions, such as GDI drawing functions.

You should use the ReleaseClientDC method when the device context is no longer needed.

See Also

Elements:

ReleaseClientDC method

Topics:

Working with the Control: Client Area Usage