.. highlightlang:: us .. index:: PenDestroy .. _pendestroy: PenDestroy ========== .. us.tag PenDestroy ENGLISH :ref:`PenDestroy` destroys the given pen and frees any memory the pen occupied. .. function:: bool = PenDestroy(hPen) .. us.return **Return Value** If the function succeeds, the return value *bool* is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hPen Identifies the pen. .. seealso:: :ref:`overview-pens`, :ref:`PenCreate` :sub:`id-1444834`