SaveDialog的一個問題 |
尚未結案
|
Overmars
一般會員 發表:15 回覆:10 積分:5 註冊:2003-12-24 發送簡訊給我 |
請問當我把一堆東西存成文字檔,
RichEdit->Lines->SaveToFile(SaveDialog->FileName); 但是去讀的時候發現, 被加了一些東西, 例如字型等等
{\rtf1\ansi\ansicpg950\deff0\deflang1033\deflangfe1028{\fonttbl{\f0\fnil\fcharset136 Verdana;}}
\viewkind4\uc1\pard\lang1028\f0\fs18 [[General_Information]]
\par XXX
\par XXXX
\par XXXXX
\par XXXXXX
\par XXXXXXX
\par XXXXXXXX (XXX為原本內容) 請問如何不要把那些資訊也存進阿, 只存XXX的部分?
感謝大家! 發表人 - taishyang 於 2004/09/16 18:24:09
|
folkchen
高階會員 發表:9 回覆:232 積分:173 註冊:2003-10-09 發送簡訊給我 |
|
richtop
資深會員 發表:122 回覆:646 積分:468 註冊:2003-06-10 發送簡訊給我 |
|
Overmars
一般會員 發表:15 回覆:10 積分:5 註冊:2003-12-24 發送簡訊給我 |
|
andychang1690
資深會員 發表:20 回覆:694 積分:442 註冊:2003-03-14 發送簡訊給我 |
Overmars: 為何不行? if ( SaveDialog->Execute() ) { // 假設存檔檔案為Text檔. RichEdit1->PlainText=true; RichEdit1->Lines->SaveToFile(SaveDialog->FileName); } 原 {\rtf1\ansi\deff0\deflang1033{\fonttbl{\f0\fswiss Arial;}} {\colortbl ;\red255\green0\blue0;\red0\green0\blue0;} \viewkind4\uc1\pard\qc\cf1\b\f0\fs32 Rich Edit Control Overview \par \cf2\fs16 (from Win32SDK Help) \par \pard\b0\fs20 \par \pard\fi-20\li500\ri840 A rich edit control is a window in which the user can enter and edit text. \par \pard\li480\ri840 \par Rich edit controls support almost all of the messages and notification \par \par An application can send messages to a rich edit control to perform \par You create a rich edit control by using the \ul\b CreateWindowEx\ulnone\b0 function, \par \par Rich edit controls support most of the window styles used with edit controls as well as additional styles. \par } 變成 Rich Edit Control Overview (from Win32SDK Help) A rich edit control is a window in which the user can enter and edit text. Rich edit controls support almost all of the messages and notification An application can send messages to a rich edit control to perform You create a rich edit control by using the CreateWindowEx function, Rich edit controls support most of the window styles used with edit controls as well as additional styles. 請參考!Andy Chang
------
Andy Chang |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |