title: Set pen/color for Polyline()?
body: <p>I use different WinGDI-functions to send data to the printer, here vector data are sent using function Polyline(). Now I want to set a color for this polyline, so I tried calling functions SetDCPenColor() and SetDCBrushColor() prior to the Polyline()-call.</p>
  
  <p>Unfortunately none of them had any influence, the resulting lines are still black. So...what could be wrong here? Which is the correct function to change the colour of such a polyline?</p>
  
  <p>Thanks!</p>
  
  <p>Edit: the code which does not work</p>
  
  <pre><code>SetDCPenColor(*pdc,RGB(rval,gval,bval));
  Polyline(*pdc,points,n);
  </code></pre>