IE_GETPAINTDC

Retrieves the handle to the device context (HDC), which is used to paint an ink edit control. This HDC was supplied to the iedit control by BeginPaint; therefore, its clipping region is set according to those portions of the iedit control that have been invalidated.

Parameters

wParam

Not used; must be 0.

lParam

Not used; must be 0.

Return Value

Returns the HDC if successful; otherwise, returns one of the following:

Constant
Description
IER_PARAMERR
wParam or lParam is invalid.
IER_NOTINPAINT
Attempted IE_GETPAINTDC outside of paint notification.

Comments

The application can send this message only when the parent window is processing one of the painting notifications: IN_PREPAINT, IN_PAINT, IN_POSTPAINT, or IN_ERASEBKGND. An attempt to send it at any other time will fail, returning IER_NOTINPAINT.

The clipping region is already appropriately set when sending IE_GETPAINTDC. The HDC is in the MM_TEXT mapping mode. The HDC must not be released; the iedit control does this after returning from the painting notification.

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database