Home > Back-end >  Why use SendMessage (Handle, EM_SETSEL, 0, 0); The cursor (should be inserted into the symbol, is th
Why use SendMessage (Handle, EM_SETSEL, 0, 0); The cursor (should be inserted into the symbol, is th

Time:10-04

Why use SendMessage (Handle, EM_SETSEL, 0, 0); The cursor (should be inserted into the symbol, is the vertical bar) can't move to the starting position of the edit box? Is under the Windows 7, delphi7 development environment, which prawn to help locate the problem, thank you,

CodePudding user response:

According to the EM_SETSEL instructions, if set the same as the last two parameters, should be to move the cursor (that is, when the editor of the vertical bar), but I tried many times are not, don't know why, head,

CodePudding user response:

It is best to stick a point source, dry program should understand the source code for how easy it is to point
Handle a mistake? Such as Edit1. Handle


http://hi.baidu.com/lemtech