修改 cxRichEdit.pas中方法 WMGetTextLength ATextInfo.flags := GTL_PRECISE or GTL_NUMCHARS or AUseCRLFFlag[FUseCRLF]; 改為 ATextInfo.flags := GTL_PRECISE or GTL_NUMBYTES or AUseCRLFFlag[FUseCRLF];GTL_NUMCHARS Returns the number of characters. This flag cannot be used with the GTL_NUMBYTES flag. E_INVALIDARG will be returned if both are used. GTL_NUMBYTES Returns the number of bytes. This flag cannot be used with the GTL_NUMCHARS flag. E_INVALIDARG will be returned if both are used.若是D2009 + Dev 則不會有問題
ATextInfo.flags := GTL_PRECISE or GTL_NUMCHARS or AUseCRLFFlag[FUseCRLF];
改為
ATextInfo.flags := GTL_PRECISE or GTL_NUMBYTES or AUseCRLFFlag[FUseCRLF];GTL_NUMCHARS
Returns the number of characters. This flag cannot be used with the GTL_NUMBYTES flag. E_INVALIDARG will be returned if both are used.
GTL_NUMBYTES
Returns the number of bytes. This flag cannot be used with the GTL_NUMCHARS flag. E_INVALIDARG will be returned if both are used.若是D2009 + Dev 則不會有問題