CTerminalEmulator::GetSelectedText Method  
 
INT GetSelectedText(
  LPTSTR lpszBuffer,  
  INT nMaxLength  
);
INT GetSelectedText(
  CString& strBuffer  
);

The GetSelectedText method copies the currently selected text into the specified buffer.

Parameters

lpszBuffer
Pointer to the buffer that the selected text will be copied to, terminated with a null character. This argument may also be a CString object which will contain the selected text when the method returns.
nMaxLength
Maximum number of characters that may be copied into the specified buffer, including the null character terminator.

Return Value

If the method succeeds, the return value is the number of characters copied into the buffer, not including the null character terminator. If the method fails, it returns zero.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csnvtv12.lib
Unicode: Implemented as Unicode and ANSI versions

See Also