Polygon, Point Example??
在help中 Polygon, Point Example 如下:
void __fastcall TForm1::PaintBox1Paint(TObject *Sender)
{
Windows::TPoint points[4];
points[0] = Point(10,10);
points[1] = Point(30,10);
points[2] = Point(130,30);
points[3] = Point(240,120);
((TPaintBox *)Sender)->Canvas->Brush->Color = clTeal;
((TPaintBox *)Sender)->Canvas->Polygon(points, 3);
}
请问Tpoint?? 我用时出现如下提示:
[C++ Error] Unit1.cpp(21): E2316 'TPoint' is not a member of 'Windows'
[C++ Error] Unit1.cpp(21): E2379 Statement missing ;
[C++ Error] Unit1.cpp(23): E2451 Undefined symbol 'points'
请问这是怎么回事???