C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[21362] Re:RICHEDIT 에서 RTF 잃어오기.....
posix.duo [posix] 1371 읽음    2002-09-10 22:54
리치에디트의 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문서 불러올때 폰트크기,폰트,색상 문서 고대로 보여줄수 있게 할려면
:  어떻게 해야 하나요..고수님들 제발 답변 부탁합니다.

:

+ -

관련 글 리스트
21361 RICHEDIT 에서 RTF 잃어오기..... 김미나 832 2002/09/10
21362     Re:RICHEDIT 에서 RTF 잃어오기..... posix.duo 1371 2002/09/10
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.