title: How combine simple geometric figures in one object?
body: <p>I had draw cylinder by simple geometric figures.
  For example:</p>
  
  <pre><code>PAINTSTRUCT ps;
      hdc=BeginPaint(hWnd,&amp;ps);
      pen1=CreatePen(PS_SOLID,3,RGB(0,0,0));
      SelectObject(hdc,pen1);
      Arc(hdc,10,10,200,100,40,40,40,40);
      MoveToEx(hdc,10,50,NULL);
      LineTo(hdc,10,200);
      MoveToEx(hdc,199,50,NULL);
      LineTo(hdc,199,200);
      Arc(hdc,10,150,200,250,10,199,200,200);
      DeleteObject(pen1);
      EndPaint(hWnd,&amp;ps);
  </code></pre>
  
  <p>How I can combine all figures in one complex object and use it?
  Maybe there are some functions that do it or create my own function?</p>