PaintEventArgs.IDeviceContext.GetHdc Method

Definition

Returns the handle to a Windows device context.

C#
IntPtr IDeviceContext.GetHdc();

Returns

IntPtr

An IntPtr representing the handle of a device context.

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the PaintEventArgs instance is cast to an IDeviceContext interface.

Applies to

Product Versions
Windows Desktop 5, 6, 7, 8, 9