quote:
Originally posted by DaAniv
code:
Interop.Call("user32", "SendMessageW",GetControlHandle("LsvSentences"),"LVM_INSERTCOLUMN",2,LPLVCOLUMN);
and this is fine for the sendmessage?
No this will not work at all.
The message you are sending through SendMessage is not a string it is an integer. LVM_INSERTCOLUMN is 0x101B. Column index I also believe is zero-based meaning the first column is 0 the second is 1 etc.
LPLVCOLUMN you need to allocate memory for and fill the structure yourself.
js code:
var LPLVCOLUMN = Interop.Allocate(32);
If you have no idea about what I just wrote then read the documentation and study a bit more