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.
在 NM_CUSTOMDRAW 中,我画了一些东西并返回 CDRF_SKIPDEFAULT。但是最后的 3 个点不显示文本是否长于列宽。
如何显示 3 个点但允许自定义绘制?
使用DrawTextAPI 绘制带有DT_END_ELLIPSIS标志的文本。更多信息在这里:
DrawText
DT_END_ELLIPSIS
http://support.microsoft.com/kb/249678