讓Panel1 繪圖的方法

TCanvas *pCanvas = new TCanvas();
pCanvas-> Handle = GetDC(Panel1 -> Handle);
pCanvas->Pen->Color = clBlue;
pCanvas->Pen->Width = 1;
pCanvas->MoveTo(0,3);
pCanvas->LineTo(8,3);
pCanvas->LineTo(4,8);
pCanvas->LineTo(0,3);

kenny23 發表在 痞客邦 PIXNET 留言(0) 人氣()