I've found a quite bothering bug about rich edit control.
1. Create Visual C++ Dialog Based project.
2. Set Character set to "Multi Byte Support" on project property.
3. Open resouce file(.rc) with "view code"
4. We can see following code that rich edit control generated Ansi window class.
CONTROL
"",IDC_RICHEDIT21,"RichEdit20A",ES_AUTOHSCROLL WS_BORDER
WS_TABSTOP,57,60,135,111
5. Then , change "Character set" property to "Unicode character set" on project poperty page.
6. Now, we expected rich edit control's class changed unicode class, "RichEdit20W"...
But It's NOT...
We have to change it RichEdit control's class name to "RichEdit20W" manually on .rc source
code.
CONTROL "",IDC_RICHEDIT21,"RichEdit20W",ES_AUTOHSCROLL WS_BORDER
WS_TABSTOP,57,60,135,111
No comments:
Post a Comment