在 Dialog 使用 CToolTipCtrl 显示提示信息。发现提示信息只能显示 160 个 UNICODE 字符,再多就被截断,不能显示。跟踪 CToolTipCtrl 代码,其中有如下定义://MFC now enforces characters limit when updateing tooltip text.
//This is to prevent buffer overrun in GetText.
const size_t MAX_TIP_TEXT_LENGTH = 1024;1024 个字符长,为什么到 160 个 UNICODE 就不行了?320 个 CHAR?