MFC --- edit box control

1, edit boxes allow multi-line input, or is allowed to hit the Enter

Properties in the edit box will be multilineset to TRUE or Want Returnset to TRUE

2, the horizontal scroll bar, a vertical scroll bar

Horizontal Scroll withVertical Scroll

3、

//将变量内容同步到控件
UpdateData(FALSE);
//将控件内容同步到变量
UpdateData(TRUE);

//设置内容
SetWindowTextW()
//获取内容
GetWindowTextW()

4、

m_C.Format(_T("%d"),i);				#m_C为cstring类型,重点是_T必须要有

Renderings:

Guess you like

Origin www.cnblogs.com/zw1sh/p/12653907.html