Page 1 of 1

Getting the result in a structure with SendMessage_?

Posted: Sat May 03, 2003 4:50 pm
by ricardo
My problem is that trying this code i get only 0 in every LV_COLUMN member. In some other similar codes (trying to get in the structure the values) i get the same trouble


Info.LV_COLUMN

SendMmessage_(Hnd,#LVM_GETCOLUMN,1,@Info)

I have tested

SendMmessage_(Hnd,#LVM_GETCOLUMN,1,@Info.LV_COLUMN)

Posted: Sat May 03, 2003 7:05 pm
by Fred
You need to specify a mask in the LV_COLUMN struct, don't forget..

Posted: Sat May 03, 2003 10:08 pm
by ricardo
Thanks Fred!!

Just for the records, its working in this way to obtain the text of any column of ListIconGadget via API:

Info.LV_COLUMN

Buffer.s = Space(100)
Info\imask = #LVCF_TEXT
Info\pszText = @Buffer
Info\cchTextMax = 100

SendMessage_(Hnd,#LVM_GETCOLUMN,ColumNum,@Info)