Microsoft KB Archive/318824

= PRB: CRichEditCtrl Creates an ANSI Window of the RichEdit20A Window Class, Regardless of Compilation Flags =

PSS ID Number: 318824

Article Last Modified on 5/13/2002

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK)
 * Microsoft Visual Studio 6.0

-



This article was previously published under Q318824



SYMPTOMS
Regardless of the compilation flags, the CRichEditCtrl class creates an ANSI window of the RichEdit20A window class. Although CRichEditCtrl can process Unicode, CRichEditCtrl returns American National Standards Institute (ANSI) text when you query for the selected text, the caption, and other options.



RESOLUTION
To work around this problem, use the CRichEditView class. When you compile this class with Unicode flags, CRichEditView creates a RichEdit20W window.

Additional query words: rich edit control

Keywords: kbprb KB318824

Technology: kbAudDeveloper kbSDKSearch kbVS600 kbVS600Search kbVSsearch kbWin32SDKSearch kbWin32sSearch

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2003 Microsoft Corporation. All rights reserved.