quote:
Originally posted by Flash
quote:
Originally posted by felipEx
works fine too but i like LB_RESETCONTENT, fast & short 
but why u speak for reset the content is not my question man
i need to know the text in each line of my combo 
sure... but you've suggested PlusWnd::Combo_GetItemText and i've suggested PlusWnd::LstBox_Clear
so... it works fine here
code:
var CB_GETCOUNT = 0x146;
var CB_GETLBTEXT = 0x148;
var CB_GETLBTEXTLEN = 0x149;
for (var i=0; i < Interop.Call("user32", "SendMessageW", PlusWnd.GetControlHandle("MyComboBox"), CB_GETCOUNT , 0, 0) ; i++) {
var length = Interop.Call("user32", "SendMessageW", PlusWnd.GetControlHandle("MyComboBox"), CB_GETLBTEXTLEN, i, 0);
var Data = Interop.Allocate((length * 2) + 2);
Interop.Call("user32", "SendMessageW", PlusWnd.GetControlHandle("MyComboBox"), CB_GETLBTEXT, i, Data);
Debug.Trace(Data.ReadString(0));
}