1. To support multiple lines in CEdit and CRichEditCtrl Class
2. Unicode in CEdit and CRichEditCtrl
Hi together,
I would like to use unicode characters in CEdit and CRichtEditCtrl.
I'm using VS 2003 and I created a new MFC project and added the
following to the 2 automatically created header files:
#include <tchar.h>
#define _UNICODE
What's working now:
LPCWSTR uniString=_T("\x4e01");
MessageBoxW(NULL,uniString,uniString,MB_OK);
It displays a chinese character, but the window title is just a square.
I can c&p unicode characters in tho a CRichtEditCtrl. They are displayed
correctly.
But I'm not able to extract the text into a variable.
I can only export into a file:
CFile cFile(TEXT("release\\myfile.rtf"),
CFile::modeCreate|CFile::modeWrite);
EDITSTREAM es;
es.dwCookie = (DWORD) &cFile;
es.pfnCallback = MyStreamOutCallback;
ce->StreamOut(SF_RTF, es);
When I try to set SF_RTF->SF_TEXT I get a txt-file with a lot of "?".
2. CEdit is not working at all. Pasting unicode into it, I get only "?".
I did not find a Class like CEditW.
Thank you for tips, Bernd
--
BM Computer-Services, Bergmannstr. 66, 10961 Berlin
Webdesign, Internet, Layout und Grafik
Tel.: 030/20649400, mobil 0175/7419517, Fax: 030/20649401
Web: http://www.yqcomputer.com/ , eMail: XXXX@XXXXX.COM
3. CEdit or CRichEditCtrl text highlighting
4. CRichEditCtrl ignores font face when streaming in through CRichEditCtrl::StreamIn
5. 'SendMessage' is not a member of CEdit, See declaration of 'CEdit'
6. Dynamically-created CEdit != CEdit from dialog template
7. -t and STDIN was What is the source of my input, file or STDIN?
8. ISDN/PRI PSTN Provider /MICS Redicrection program ?
9. STDIN, OUT, ERR and $stdin, out, err - Differences?
10. 'for l in sys.stdin' at interactive prompt (WAS: sys.stdin.readline())
11. Pipe and STDIN - What is the source of my input, file or STDIN?
12. Reading from stdin then launching a program that reads from stdin strange behaviour
13. Reading stdin once confuses second stdin read
14. peek at stdin, flush stdin
15. Issue reading password from STDIN after STDIN was read from redirect.