您的位置:首页 > 其它

CRickEditView 取消自动换行

2015-12-26 16:50 561 查看
void CMyRichEditViewTestView::OnInitialUpdate()
{
CRichEditView::OnInitialUpdate();

// Turn on the horizontal scroll bar
m_nWordWrap = WrapNone;
WrapChanged();
}
///////////////////////////////////////////////////////////////
/*
CRichEditView::m_nWordWrap
Remarks
Indicates the type of word wrap for this rich edit view. One of the following values: 
WrapNone   Indicates no automatic word wrapping.
WrapToWindow   Indicates word wrapping based on the width of the window.
WrapToTargetDevice   Indicates word wrapping based on the characteristics of the target device. 
*////////////////////////////////////////////////////////////
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: