Getting the result in a structure with SendMessage_?

Just starting out? Need help? Post your questions and find answers here.
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Getting the result in a structure with SendMessage_?

Post 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)
ARGENTINA WORLD CHAMPION
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

You need to specify a mask in the LV_COLUMN struct, don't forget..
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post 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)
ARGENTINA WORLD CHAMPION
Post Reply