MLM LINEFROMCHAR: Difference between revisions
Appearance
Created page with "This message returns the line number corresponding to a given insertion point. ==Syntax== <pre> param1 IPT iptFirst; →Insertion point of interest.: param2 ULONG ulReserved; →Reserved value, should be 0.: </pre> ==Parameters== ;iptFirst (IPT) - input: Insertion point of interest. ;ulReserved (ULONG) - input: Reserved value, should be 0. ==Returns== ;lLineNum (LONG) - return: Line number of insertion point. ==Remarks=== For any insertion point, the correspo..." |
(No difference)
|
Latest revision as of 04:33, 25 April 2025
This message returns the line number corresponding to a given insertion point.
Syntax
param1 IPT iptFirst; /* Insertion point of interest. */ param2 ULONG ulReserved; /* Reserved value, should be 0. */
Parameters
- iptFirst (IPT) - input
- Insertion point of interest.
- ulReserved (ULONG) - input
- Reserved value, should be 0.
Returns
- lLineNum (LONG) - return
- Line number of insertion point.
Remarks=
For any insertion point, the corresponding line number is returned. If the insertion point is -1, the number of the line containing the first insertion point of the selection is returned.
The term line means a line on the display after the application of word-wrap. It does not mean a line as defined by the CR LF line-break sequence.
Default Processing
The default window procedure takes no action on this message, other than to set lLineNum to 0.