0

I have created a Text Edit Box using Microsoft RichEdit Controls. But I am having black and white Emojis. Using Windows msftedit.dll library and RichEdit50W windows class.

  • Windows 11
  • I have tried installing Segoe Font and Emojis

Please help me in how I can set the appropriate coloured emojis support.

Ajay.kundu
  • 195
  • 2
  • 10

1 Answers1

1

According to one of the RichEdit developers, you must use RichEdit in Direct2D mode and this only exists in the RichEdit shipped with Office.

The Windows 11 Notepad uses the RichEditD2DPT window class with a recent Microsoft 365 RichEdit. On my laptop, the Microsoft 365 RichEdit is housed in C:\Program Files\Microsoft Office\root\vfs\ProgramFilesCommonX64\Microsoft Shared\OFFICE16\riched20.dll.

Then send it EM_SWITCHTOD2D (WM_USER + 389) before adding text.

Anders
  • 97,548
  • 12
  • 110
  • 164
  • I am able to colorise the emojis using above mentions .dll. Do we have something in msftedit.dll for the same? – Ajay.kundu Jul 27 '22 at 11:15
  • 1
    What was unclear? Msftedit does not support direct2d nor color emoji. Only office library does. – Anders Jul 27 '22 at 12:03
  • In the end of the article Sargent suggested a way to implement ITextService to provide the coloured functionality but I have tried using it. But enable to use it properly. In my application. I don't have the flexibility to use RichEdit shipped with office. So I have to use msftedit.dll. Please help me how can I use ITextService or ITextHost for this purpose. – Ajay.kundu Jul 29 '22 at 10:27