RECT是什么作用?

liuyuting 2002-02-20 04:40:40
在我抄的一段程序中出现了如下的两个相同的错误:
error C2018: unknown character '0xa1'
error C2018: unknown character '0xa1'
点击它找到的一段代码行是一个定义:
RECT ClipRect;
因为我是初学者,对VC还是有些迷茫,在我现有的感觉来看RECT是一个系统自带的吧,因为我没有安装MSDN,所以无法搞得更清楚些,请各位高人在不要见笑的情况下告诉我RECT的作用。如有可能再告诉我错误的原因会是什么。这个程序是做文字的输入输出的,也就是如Word或者是其他的文字处理软件那样选择字体、字号、以及颜色等。
...全文
425 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
masterjames 2002-02-20
  • 打赏
  • 举报
回复
CRECT 是个区域,
CRECT RECT
用他可以抓住,VIEW的客户区
sunwen_chen 2002-02-20
  • 打赏
  • 举报
回复
把space delete
pingguo 2002-02-20
  • 打赏
  • 举报
回复
对,Rect是结构体,MSDN的定义如下:
RECT
The RECT structure defines the coordinates of the upper-left and lower-right corners of a rectangle.

typedef struct _RECT {
LONG left;
LONG top;
LONG right;
LONG bottom;
} RECT;

Members
left
Specifies the x-coordinate of the upper-left corner of the rectangle.
top
Specifies the y-coordinate of the upper-left corner of the rectangle.
right
Specifies the x-coordinate of the lower-right corner of the rectangle.
bottom
Specifies the y-coordinate of the lower-right corner of the rectangle.
Remarks
When RECT is passed to the FillRect function, the rectangle is filled up to, but not including, the right column and bottom row of pixels. This structure is identical to the RECTL structure.

QuickInfo
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in windef.h.

你的错误应该是有非法的字符在某个语句中,仔细察看一下。
spark_zh 2002-02-20
  • 打赏
  • 举报
回复
哈哈,你一定是拷贝、粘贴了,把中文字符一块考上去了。
把你那句的括号、分号都重新打一遍就ok了。
kingofhell 2002-02-20
  • 打赏
  • 举报
回复
如果你一直在网上就可以去微软的MSDN去查。
这个Rect是个结构体
typedef struct _RECT {
LONG left;
LONG top;
LONG right;
LONG bottom;
} RECT, *PRECT;
其它没什么好说,很简单的,自己去做把
liuyuting 2002-02-20
  • 打赏
  • 举报
回复
up是什么意思?
mensong 2002-02-20
  • 打赏
  • 举报
回复
up

16,471

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Web++
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

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