Add Edit control style: WS_VSCROLL | ES_MULTILINEint nFirstVisible = pmyEdit->GetFirstVisibleLine();// Scroll the edit control so that the first visible line // is the first line of text. if (nFirstVisible > 0) { pmyEdit->LineScroll(-nFirstVisible, 0); }
WS_VSCROLL | ES_MULTILINEint nFirstVisible = pmyEdit->GetFirstVisibleLine();// Scroll the edit control so that the first visible line
// is the first line of text.
if (nFirstVisible > 0)
{
pmyEdit->LineScroll(-nFirstVisible, 0);
}
复选框,然后据需要选中verticle scroll和autoVscroll
在视图中调用
m_pTextEdit->Create(WS_HSCROLL|ES_MULTILINE|ES_AUTOVSCROLL |ES_WANTRETURN | WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER, CRect(point1, point2),pView, 1);
如有需要给我邮箱,有相关的代码
顺便去我的问题看看
http://expert.csdn.net/Expert/topic/2357/2357642.xml?temp=.86224
似乎闪了一下。