What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help]Listview insert column

[Help]Listview insert column
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Help]Listview insert column
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 :)
02-08-2009 03:04 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help]Listview insert column - by DaAniv on 02-08-2009 at 02:11 PM
RE: [Help]Listview insert column - by matty on 02-08-2009 at 02:26 PM
RE: [Help]Listview insert column - by DaAniv on 02-08-2009 at 02:44 PM
RE: [Help]Listview insert column - by matty on 02-08-2009 at 02:46 PM
RE: [Help]Listview insert column - by DaAniv on 02-08-2009 at 02:52 PM
RE: [Help]Listview insert column - by matty on 02-08-2009 at 03:04 PM
RE: [Help]Listview insert column - by DaAniv on 02-08-2009 at 06:11 PM
RE: [Help]Listview insert column - by matty on 02-08-2009 at 09:09 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On