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.
当richedit控件中的字符串大小达到其宽度的最大平均值时,我想增加我的编辑控件的高度。我使用了 EN_MaxText 但它在 RichEdit 控件中不起作用。
您可以使用 OnChange 事件并检查长度。如果达到,您可以做任何您想做的事情,例如使用 MessageBox 通知用户。