,_
Em_getfirstvisibleline, 0 , 0 )
End Function
Because em_getfirstvisibleline does not require any parameters, both wparam and lparam must be assigned 0 values. If you want to apply this function to a standard text box in a rich text box, you just need to change the parameter type of the function from textbox to RichTextBox. Remember that the row sequence number starts with 0. When the function returns 0, it indicates the first row.
The rich text box has a method getlinefromchar that can deter
point) takes the range of the selection in the edit control, the lower 16 bits in the return value are the starting point, and the high 16 bits are the end points
Em_gethandle (hbd=189),0,0//Get text buffer
Em_getwordbreakproc (hd1=209),0,0 //Get the whole word wrap callback function Editwordbreakproc pointer
Em_getlimittext (wm_user+37=1061),0,0 //Get the maximum length of text in an edit control
Em_getmargins (),0,0 //Gets the left and right margin of the edit control, the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.