|
msdn啊 不然直接打到vc,看里面的参数也能猜出几分
以下引自msdn
CEdit::GetLineCount See Also
CEdit Overview | Class Members | Hierarchy Chart
Call this function to retrieve the number of lines in a multiple-line edit control.
int GetLineCount( ) const;
Return Value
An integer containing the number of lines in the multiple-line edit control. If no text has been entered into the edit control, the return value is 1.
Remarks
GetLineCount is only processed by multiple-line edit controls.
For more information, see EM_GETLINECOUNT in the Platform SDK.
-------------------------------------------------------------------------------------------------------
CEdit::GetLineSee Also
CEdit Overview | Class Members | Hierarchy Chart | CEdit::LineLength | CWnd::GetWindowText
Call this function to retrieve a line of text from an edit control and places it in lpszBuffer.
int GetLine(
int nIndex,
LPTSTR lpszBuffer
) const;
int GetLine(
int nIndex,
LPTSTR lpszBuffer,
int nMaxLength
) const;
Parameters
nIndex
Specifies the line number to retrieve from a multiple-line edit control. Line numbers are zero-based; **alue of 0 specifies the first line. This parameter is ignored by a single-line edit control.
lpszBuffer
Points to the buffer that receives a copy of the line. The first word of the buffer must specify the maximum number of bytes that can be copied to the buffer.
nMaxLength
Specifies the maximum number of bytes that can be copied to the buffer. GetLine places this value in the first word of lpszBuffer before making the call to Windows.
Return Value
The number of bytes actually copied. The return value is 0 if the line number specified by nIndex is greater than the number of lines in the edit control.
Remarks
The copied line does not contain a null-termination character.
For more information, see EM_GETLINE in the Platform SDK.
Example
See the example for CEdit::GetLineCount.
See Also
CEdit Overview | Class Members | Hierarchy Chart | CEdit::LineLength | CWnd::GetWindowText
-------------------------------------------------------------------------------- |
|