programing:cpp_builder:cpp_builder-tmemo-caret-display
**文書の過去の版を表示しています。**
TMemoでキャレット位置に文字列を表示する
Windowsメッセージを使った方法では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.1580386706.txt.gz · 最終更新: 2020/01/30 21:18 by yoko