基本上我有一个程序可以移动用 MFC 中的钢笔工具绘制的线条。我使用滑块来操作钢笔工具。我只是想知道是否可以使用 .bmp 替换钢笔工具?这是一些示例代码:
if (thePart->GetType() == PART_LINKAGE)
{
// draw control link pin in black
dc.SelectObject(&Pen[3]);
theNewPos = thePart->Getpoint();
dc.MoveTo( cx + (int32_t)(fScale * (theNewPos.GetX()+fx)) - 5,
cy - (int32_t)(fScale * (theNewPos.GetY()+fy)) );
dc.LineTo( cx + (int32_t)(fScale * (theNewPos.GetX()+fx)) + 4,
cy - (int32_t)(fScale * (theNewPos.GetY()+fy)) ); //
dc.MoveTo( cx + (int32_t)(fScale * (theNewPos.GetX()+fx)),
cy - (int32_t)(fScale * (theNewPos.GetY()+fy)) - 5);
dc.LineTo( cx + (int32_t)(fScale * (theNewPos.GetX()+fx)),
cy - (int32_t)(fScale * (theNewPos.GetY()+fy)) + 4);
dc.SelectObject(&Pen[iID])
;