| |

VerySource

 Forgot password?
 Register
Search
View: 593|Reply: 1

Questions about hidden text in RichEdit

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-25 13:40:01
| Show all posts |Read mode
I wrote the following program, I don't know why the selected text is not hidden (not displayed on the interface)?
long nPos = m_rEdit_Src_Ctl.FindText (0,&ft);
m_rEdit_Src_Ctl.SetSel (0, nPos + 3); / * nPos must be greater than 0 * /
m_rEdit_Src_Ctl.HideSelection (TRUE, FALSE);
Reply

Use magic Report

0

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 Invalid IP Address

Post time: 2020-5-16 18:15:01
| Show all posts
Read MSDN
There is such a sentence
It is the explanation of the first parameter of the HideSelection () function:
Indicates if the selection should be shown or hidden, TRUE to hide the selection.
According to my understanding
If FALSE is to display the selected text, TRUE does not display
But Lou's main understanding is not to hide and show
When it is FALSE, it will turn the selected text background to black, which is shown
If TRUE, it wo n’t be black, and of course you do n’t know which text is selected

Personal understanding should be like this!
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list