Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
从这里可以看出,该函数AddFontResource()要求应用程序向WM_FONTCHANGE系统中的所有顶级窗口发送消息,但AddFontResourceEx()函数不需要这样做。为什么有区别?
AddFontResource()
WM_FONTCHANGE
这是因为您通常只使用 Ex 版本添加其他进程无法看到的私有字体。所以没有必要告诉任何人。
如果您不使用 FR_PRIVATE 或 FR_NOT_ENUM 标志,请发送消息。