Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,980 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
When using Richedit20W and switching it to D2D with
SendMessage(hRichEdit, EM_SWITCHTOD2D, 0, 0);
and using
int backdrop = 3;
DwmSetWindowAttribute(hwnd, DWMWA_SYSTEMBACKDROP_TYPE, &backdrop, sizeof(backdrop));
MARGINS margins = { -1 };
DwmExtendFrameIntoClientArea(hwnd, &margins);
Both text and images are inserted with transparency, unlike with Richedit20W and 50" where D2D mode isn't enabled;
Non Direct2D: