Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个CEdit控件,我将它设置为资源中的多行。
CEdit
用户可以键入文本,如果它对于控件来说太宽,它将自动换行。伟大的。
现在,我知道我可以传入一个字符串并包含换行符\n,以使其显示多行文本。
\n
但是,如果我只有一行文本,那太长了,它就无法自动换行。:( 那么我该如何处理呢?
我在这里找到了解决方案。
我不得不将ES_AUTOHSCROLL属性设置为 false。
ES_AUTOHSCROLL
现在它起作用了: