How to prohibit the RichText control automatic wrap? (adaptation)

xiaoxiao2021-03-06  38

How to prohibit the RichText control automatic wrap?

Problem Description:

How to prohibit the RichText control automatic wrap?

solution:

Step 1: Declare the external function:

Function Ulong SendMessage (Ulong Hwnd, Ulong WMSG, Ulong WPARAM, ULONG LPARAM) library "user32.dll" alias for "sendMessagea"

Step 2: Write the script in a button:

SendMessage (OLE_1.Object.hwnd, 1096, 0, 1)

Step 3: Test - first writing a number of rows in the Richtext control, then point the button, you can see that these multi-line automatically become a row, and will not automatically pick it up;

Supplement: If you want to restore it to automatic wrap, please refer to below, I did not continue to write:

"Set the RichtextBox to automatic wrap or non-automatic wrap"

http://www.9cbs.com.cn/program/3411.htm

转载请注明原文地址:https://www.9cbs.com/read-65026.html

New Post(0)