首页
社区
课程
招聘
求助 关于EDIT控件
2006-4-11 14:36 4200

求助 关于EDIT控件

2006-4-11 14:36
4200
收藏
点赞0
打赏
分享
最新回复 (9)
雪    币: 291
活跃值: (208)
能力值: ( LV12,RANK:210 )
在线值:
发帖
回帖
粉丝
thebutterfly 5 2006-4-11 15:34
2
0
Edit控件没有直接提供这个功能
要打开可以用文件相关API读取文件信息再设置为Edit控件的内容
雪    币: 207
活跃值: (40)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
ilovemasm 2006-4-13 18:54
3
0
先用“打开文件”通用对话框,获得打开文件名,然后在底层用
CreateFile API 函数打开这个文件,将文件读入缓冲区后,再将缓冲区中的
内容写进 EDIT 控件中。
雪    币: 268
活跃值: (10)
能力值: ( LV10,RANK:170 )
在线值:
发帖
回帖
粉丝
三根火柴 4 2006-4-14 10:20
4
0
在EDIT控件中可不可以改变字体,查找 替换能不能用,为什么我在EDIT中不能改变字体呢?
雪    币: 268
活跃值: (10)
能力值: ( LV10,RANK:170 )
在线值:
发帖
回帖
粉丝
三根火柴 4 2006-4-15 12:45
5
0
问题太垃圾,没有顶
雪    币: 268
活跃值: (10)
能力值: ( LV10,RANK:170 )
在线值:
发帖
回帖
粉丝
三根火柴 4 2006-4-15 12:50
6
0
第一个问题已经解决了,先用createfile创建文件,再用writefile或readfile打开或读入就行了,现在的问题是EDIT控件支不支持对字体的改变和查找功能
雪    币: 291
活跃值: (208)
能力值: ( LV12,RANK:210 )
在线值:
发帖
回帖
粉丝
thebutterfly 5 2006-4-15 12:57
7
0
Edit控件功能有限,试试RichEdit控件吧
雪    币: 268
活跃值: (10)
能力值: ( LV10,RANK:170 )
在线值:
发帖
回帖
粉丝
三根火柴 4 2006-4-15 13:48
8
0
大侠的意思是EDIT不支持了
雪    币: 268
活跃值: (10)
能力值: ( LV10,RANK:170 )
在线值:
发帖
回帖
粉丝
三根火柴 4 2006-4-15 13:59
9
0
顺便问一下,哪位大哥能给我解释一下RECT结构,我对里面的高和宽不太理解
雪    币: 270
活跃值: (176)
能力值: ( LV12,RANK:370 )
在线值:
发帖
回帖
粉丝
ikki 9 2006-4-16 13:56
10
0
msdn是个好东西

RECT
The RECT structure defines a rectangle by the coordinates of its upper-left and lower-right corners.

typedef struct tagRECT {
  LONG left;
  LONG top;
  LONG right;
  LONG bottom;
} RECT, *PRECT, NEAR *NPRECT, FAR *LPRECT;
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.

高:bottom -top
宽:right - left
游客
登录 | 注册 方可回帖
返回