CPen::operator HPEN

operator HPEN( ) const;

Return Value

If successful, a handle to the Windows GDI object represented by the CPen object; otherwise NULL.

Remarks

Use this operator to get the attached Windows GDI handle of the CPen object. This operator is a casting operator, which supports direct use of an HPEN object.

For more information about using graphic objects, see the article Graphic Objects in Win 32 SDK Programmer’s Reference.

CPen OverviewClass MembersHierarchy Chart