开发者

CListView Control has limited length for column text

开发者 https://www.devze.com 2022-12-29 18:00 出处:网络
When I set the column text for CListView mor开发者_运维百科e than 271 characters, the rest of my buffer is not present.

When I set the column text for CListView mor开发者_运维百科e than 271 characters, the rest of my buffer is not present.

I set it through LV_COLUMN structure.

Is this a known issue for MFC 4.21?


Here's yet another answer you won't like. It has nothing to do with your ancient version of MFC, it is a documented limitation for the list view control. From the SDK docs for the LVITEM structure's pszText member:

If the structure receives item attributes, pszText is a pointer to a buffer that receives the item text. Note that although the list-view control allows any length string to be stored as item text, only the first 260 TCHARs are displayed.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号