描述
The GETTEXTEX structure contains information about an operation to get text from a rich edit control. This structure is passed in the wParam in the EM_GETTEXTEX message.
C/C++ 语法
typedef struct _gettextex { DWORD cb; DWORD flags; UINT codepage; LPCSTR lpDefaultChar; LPBOOL lpUsedDefChar; } GETTEXTEX; |
FreeBasic Syntax
TYPE GETTEXTEX cb AS DWORD flags AS DWORD codepage AS UINT lpDefaultChar AS LPCSTR lpUsedDefChar AS LPBOOL END TYPE |
成员
cb
Count of bytes in the fetched string. The size of the output buffer is lParam in the EM_GETTEXTEX message.
flags
Value specifying a text operation. This member can be one of the following values.
GT_DEFAULT
No CR translation.
GT_SELECTION
Retrieves the text for the current selection.
GT_USECRLF
Indicates that when copying text, each CR should be translated into a CRLF.
codepage
Code page used in the translation. It is CP_ACP for ANSI Code Page and 1200 for Unicode.
lpDefaultChar
Points to the character used if a wide character cannot be represented in the specified code page. It is used only if the code page is not 1200 (Unicode). If this member is NULL, a system default value is used.
lpUsedDefChar
Points to a flag that indicates whether a default character was used. It is used only if the code page is not 1200 (Unicode). The flag is set to TRUE if one or more wide characters in the source string cannot be represented in the specified code page. Otherwise, the flag is set to FALSE. This member may be NULL.
备注
The EM_GETTEXTEX message is faster when both lpDefaultChar and lpUsedDefChar are NULL.
最低操作系统
Windows 95 with Rich Edit 2.0, Windows 98, Windows NT 4.0.