My windows application is showing black and white emojis in Text Edit Box?

278 Views Asked by At

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.

1

There are 1 best solutions below

3
Anders On

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.