|
리치에디트의 RegisterConversionFormat() 메소드를 이용하세요.
아래는 빌더 헤프파일에서 복사한 겁니다.
------- 아 래 -------
Registers an association between a file extension and a TConversion object
that can convert between the native file format and rich text format (RTF).
static void __fastcall RegisterConversionFormat(System::TMetaClass* vmt, const
AnsiString AExtension, System::TMetaClass* AConversionClass);
<Description>
Rich edit controls encode text attributes in RTF format. To read from or
write to files that encode text attributes in some other format, a converter
is required. The converter is a descendant of TConversion that translates
between the native file format and RTF when the text is streamed in or out.
RegisterConversionFormat sets up an association between a file extension and
a converter, so that all attempts to stream between a file with that extension
and a rich edit control automatically invoke the appropriate converter.
Note: Use the Lines property to stream the text to or from a file.
김미나 님이 쓰신 글 :
: 안녕하세요 초보인대요
: 볼랜드에서 RICHEDIT를 VCL로 만든 소스 자료들이 많은데 순수 C소스 자료는 3일동안
: 찾아보았는데 못찾았어요. ㅠ.ㅠ
: CreateWindowEx(0,"RichEdit".............) 를 사용해서 EDIT를 만들었거든요
: RTF문서 불러올때 폰트크기,폰트,색상 출력은 안되고 그냥 일반 TXT만 나오네요
: 워드패드로 붙여넣기 하면 폰트크기,폰트,색상은 고대로 나오거든요.
:
: RTF문서 불러올때 폰트크기,폰트,색상 문서 고대로 보여줄수 있게 할려면
: 어떻게 해야 하나요..고수님들 제발 답변 부탁합니다.
:
:
|