Know the number of characters from the column size listview vb6

2

I have an api in vb6 responsible for generating reports from listview type components. It turns out that the report consists of a table with several columns that are mirrored in the ListView. The measure of the column in the report is given by the number of characters it contains ... example:

Column2 = Column2 is 7 characters or less in length.

However, you give the size of the report column based on the size of the text displayed in the column in the listview. That is, if I reduce the size of the column in the listivew and the text looks like "Colu" instead of "Column2" then I want to send the new size "Colu" = 4 to my report.

But it is difficult to have this measure ... as for example, could I know how many characters are being displayed within that column in the listview? Considering that it has been resized by the user and may be cutting some text in half.

    
asked by anonymous 02.09.2014 / 14:08

1 answer

1

You will have to use the windows API for SendMessage , direct question to handle of ListView these measures. VB6 does not natively have interfaces to these properties.

I had the same problem in a project, once I found the link or the code, put

    
31.10.2014 / 04:42