| |
| Retrieving the line number that a memo's cursor is on. |
 |
How can I retrieve the line number that a memo's cursor is on?
The zero based location of the cursor can be retrieved by sending an EM_LINEFROMCHAR message. WParam contains the character number that you wish the line number for, or - for the current line (where the caret is located or the beginning of a text selection).
Example:
LineNumber := Memo .Perform(EM_LINEFROMCHAR, - , 0);
|
|
| Hits/month |
2,500,000+ |
Downloads (Since May 2000) |
7,393,709 |
| Total Files |
6,023 |
| Forum msgs |
7,670 |
| Articles/FAQs |
70+/900+ |
Top Selling Software at Amazon
|