Share via


CDC::GetCurrentPen

Returns a pointer to the currently selected CPen object.

CPen* GetCurrentPen( ) const;

Return Value

Pointer to a CPen object, if successful; otherwise NULL.

Remarks

This member function may return temporary objects.

Requirements

Header: afxwin.h

See Also

Reference

CDC Class

Hierarchy Chart

CDC::SelectObject

GetCurrentObject

CDC::GetCurrentBitmap

CDC::GetCurrentBrush

CDC::GetCurrentFont

CDC::GetCurrentPalette

Other Resources

CDC Members