i tryed your code felip that work fine
code:
function cb_GetItem(w,d,n){
var CB_GETCOUNT = 0x146
var CB_GETLBTEXT = 0x148
var CB_GETLBTEXTLEN = 0x149
var t = w.SendControlMessage(d,CB_GETCOUNT, 0, 0)
//Debug.Trace("Total= " +t)
for(var i=0; i < t; i++) {
var length = w.SendControlMessage(d, CB_GETLBTEXTLEN, i, 0)
var Data = Interop.Allocate((length * 2) + 2)
if (i == n) {
Interop.Call("user32", "SendMessageW", w.GetControlHandle(d), CB_GETLBTEXT, i, Data);
//w.SendControlMessage(d,CB_GETLBTEXT,i,Data) not work
return Data.ReadString(0)
}
}
}
quote:
Originally posted by felipEx
you seem that you're working with dispatchers functions =) . why Patchou doesn't implement programming-based on prototypes ? ^^
yes i dont know how for other way :|
its possible this way
code:
cb_GetItem(ww,"cbc",0) -> ww.cb_GetItem("cbc",0)
??