我该如何删除或过滤这种消息?
这非常令人烦恼,一直显示,我不知道为什么。 我正在使用Visual Studio 2019 C++。
阅读此行代码后:
MessageBox(g_hWnd, string.data(), L"", MB_OK | MB_ICONSTOP | MB_SETFOREGROUND | MB_APPLMODAL | MB_TOPMOST);
该消息总是被显示:
windows\dwm\dwmapi\attribute.cpp(105)\dwmapi.dll!00007FFBE41B1940: (caller: 000000018000E820) LogHr(1) tid(83b8) 80070006 Identificador inválido.
但如果我移除MB_ICONSTOP
,只使用以下代码:
MessageBox(g_hWnd, string.data(), L"", MB_OK | MB_SETFOREGROUND | MB_APPLMODAL | MB_TOPMOST);
它将不会显示。
其他我不知道的东西也能触发它的显示。
MessageBox
调用,就像上面提到的主题一样。我点击菜单->关于,但是在输出窗口中没有看到那个文本。我的笔记本电脑上安装的是 Windows 10.0.19042 Build 19042 (20H2)。 - Dmytro Ovdiienko