1.  Edit 的属性

Acccept Files -> True 控件接受拖放文件

Multiline -> True 多行模式(控件初始为单行模式)

Read Only -> True 控件设置为只读模式,不予许修改

Want Return -> True 控件接收 Enter(回车键),进行换行,只能在多行模式下作用

Align Text -> True 控件输入模式,默认为 Left(左对齐)

Auto VScroll -> True 编辑框底部按 Enter 键时,文本自动向上滚动

Horizon Scroll -> True 给编辑框设置水平方向的滚动条

Vertical Scroll -> True 给编辑框设置垂直方向的滚动条

Number -> True 编辑框内只能输入数字

Password -> True 密码模式

2.  相关 API 

a).  获取编辑框的内容:CWnd::GetWindowText();

b).  为编辑区设置内容:CWnd::SetWindowText();

c).  UpdateData(TRUE):将编辑区的内容更新到变量

d).  UpdateData(FALSE):将变量的内容更新到编辑区

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案