MLM_QUERYLINECOUNT
Appearance
This message queries the number of lines of text.
Syntax
param1 ULONG ulReserved; /* Reserved value, should be 0. */ param2 ULONG ulReserved; /* Reserved value, should be 0. */
Parameters
- ulReserved (ULONG) - input
- Reserved value, should be 0.
- ulReserved (ULONG) - input
- Reserved value, should be 0.
Returns
- ulLines (ULONG) - return
- The number of lines of text.
Remarks
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. The multi-line edit control always maintains one CR LF line-break in the buffer, therefore the number of lines returned may be one greater than the number actually visible.
Default Processing
The default window procedure takes no action on this message, other than to set ulLines to 0.