📄 index017.htm
字号:
<html>
<style type="text/css"><!--
.p9 { font-family: "宋体"; font-size: 9pt}a {text-transform: none; text-decoration: none;}
a:hover {text-decoration: underline; color: #FF0000;}
--></style>
<body background="../di2001.jpg">
<h3 align="center"><font COLOR="#AOAO99"></font></h3>
<table width="100%" border="1" cellspacing="1">
<tr><td><p align="center"><font color="#FF0000">如何创建一个字回绕的CEditView</font></td></tr>
<tr><td><p>
</Br>
重载CWnd : : PreCreateWindow和修改CREATESTRUCT结构,关闭CEditView对象的ES_AUTOHSCROLL和WS_HSCROLL风格位, 由于CEditView : : PreCreateWindow显示设置cs. style,调用基类函数后要修改cs . style。<Br>
</Br>
BOOL CSampleEDitView : : PreCreateWindow (CREATESTRUCT&cs)<Br>
{<Br>
//First call basse class function .<Br>
BOOL bResutl =CEditView : : PreCreateWindow (cs)<Br>
</Br>
// Now specify the new window style .<Br>
cs.style &= ~ (ES_AUTOHSCROLL |WS_HSCROLL)<Br>
return bResult<Br>
}<Br>
</Br>
</p></td></tr>
</table>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -