我用简单的几何图形画了圆柱体。例如:
PAINTSTRUCT ps;
hdc=BeginPaint(hWnd,&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,&ps);
如何将所有图形组合在一个复杂对象中并使用它?也许有一些功能可以做到这一点或创建我自己的功能?