the function selects a pen as the active drawing object of the actual device context a pen is used to draw lines and curves ie if you draw a single line the pen is used if you draw an rectangle the pen is used to draw the borders while the brush is used to fill the shape if you havent selected a pen before drawing shapes the shape wont be outlined printer _ handle must be a valid handle to a printer pen _ handle must be a valid handle to a pen 