crichedit

Change char inserted using Alt+Unicode in CRichEdit

心已入冬 提交于 2020-02-06 03:30:31
问题 I want to change a unicode char inserted using Alt+Unicode code from the keyboard. I used PretranslateMessage for changing the chars inserted directly from the keyboard and it worked. But with the Alt+Unicode code method it does not. Here is the code: Microsoft Word has this functionality when enabling show/hide paragraph marks. BOOL CEmphasizeEdit::PreTranslateMessage(MSG* msg) { if (msg->hwnd == m_hWnd) { if (msg->message == WM_CHAR) { if (TheApp.Options.m_bShowWSpaceChars) { if (msg-