Polygon, Point Example??

cqw4101206 2003-10-21 11:05:41
在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'
请问这是怎么回事???
...全文
61 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
atulss 2003-10-23
  • 打赏
  • 举报
回复
同意楼上所说,去掉Windows::TPoint points[4];
前的Windows::
Kabin 2003-10-21
  • 打赏
  • 举报
回复
把Windows::去掉

13,826

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧