how can i change the color of the pen?

i tried setdcpencolor but it is not recognized :?