解决TOOLBAR显示一半汉字的问题
参考1
FUNCTION ulong DrawText(ulong lhdc,ref string lpStr,ulong nCount,ref RECT lpRect,ulong wFormat) LIBRARY "user32.dll" ALIAS FOR "DrawTextA;Ansi"
改为:
FUNCTION ulong DrawText(ulong lhdc,ref string lpStr,ulong nCount,ref RECT lpRect,ulong wFormat) LIBRARY "user32.dll" ALIAS FOR "DrawTextW"
参考2
FUNCTION Boolean GetTextExtentPoint32(ulong hdc, string text, long textLen, ref tagSize lstr) Library "gdi32.dll" alias for "GetTextExtentPoint32A;Ansi"
修改为:
FUNCTION Boolean GetTextExtentPoint32(ulong hdc, string text, long textLen, ref tagSize lstr) Library "gdi32.dll" alias for "GetTextExtentPoint32W"
本文将介绍如何通过修改DLL库中的函数调用来解决TOOLBAR在显示汉字时出现的问题,具体包括将`DrawTextA`改为`DrawTextW`以及将`GetTextExtentPoint32A`改为`GetTextExtentPoint32W`。
3605

被折叠的 条评论
为什么被折叠?



