programing:cpp_builder:cpp_builder-tmemo-caret-display
**文書の過去の版を表示しています。**
TMemoでキャレット位置に文字列を表示する
Unicode対応の関係で、英数字はうまく表示できるがカナ文字などが文字化けしたがソースを以下の修正で動いた。
SelTextプロパティ代入に変更
String text = L"文字列"; Memo->Perform(EM_REPLACESEL, 0, (LPARAM)text.c_str()); // SendMessage ↓ Memo->SelText = text;
参考
programing/cpp_builder/cpp_builder-tmemo-caret-display.1580374728.txt.gz · 最終更新: 2020/01/30 17:58 by yoko