tags:

views:

27

answers:

1

When I set the column text for CListView more 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?

+1  A: 

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.

Hans Passant
The answer is bad, for me, bad precise. Thanaks a lot.
Sunscreen
And I do not decide in which framework we should develop, company does :)
Sunscreen